[Tex/LaTex] Tikz poster block title colours

blockcolortikzposter

I'm trying to get a custom colour on the title part of a \block. The documentation is really dense and I can't quite get my head around it.
So at the moment I have a \block that looks like
enter image description here

just made with the code

\block{The title of a block}{

\lipsum[1]

}

and I basically want to change the colour of the background behind the title part of the block, but without changing the colour of every block on the page. I guess this is really simple but I can't fight my way through the documentation to be able to find a simple answer, any help is appreciated! Thanks 🙂

Best Answer

You can change the color inside a local scope

\documentclass{tikzposter} % See Section 3
\title{Title} \institute{Inst} % See Section 4.1
\author{Auth} \titlegraphic{Logo}
\usetheme{Basic} % See Section 5
\usepackage{lipsum}

\begin{document}
\maketitle % See Section 4.1
\block{BlocktitleA}{\lipsum[1]} % See Section 4.2
\begin{columns} % See Section 4.4
\column{0.3} % See Section 4.4
{%<--------- Start scope
   \colorlet{blocktitlebgcolor}{red} %<---- change color
   \block{BlocktitleB}{\lipsum[2]}
}%<--------- End scope
\column{0.7}
\block{BlocktitleC}{\lipsum[3]}
%\note{Notetext} % See Section 4.3
\end{columns}
\end{document}

enter image description here