I'm in the process of creating a custom Beamer theme. I know how to change the color of fonts for certain elements within an itemize or enumerate block, but I can't seem to figure out how to specific the color in a block as depicted below. For example:

\begin{block}{Change the font color here}
    some text
    some more text

I would like to alter the color of the {Change the font color here} area for my theme. I am trying to use this code in my .sty file to change the color to black:


What am I doing wrong?

3 Answers 3


You can modify the color using the block title template:


\setbeamercolor{block title}{bg=red!30,fg=black}


\begin{block}{Change the font color here}
    some text
    some more text


enter image description here

  • Many thanks! This was exactly what I was looking for.
    – dr.bunsen
    Oct 31, 2011 at 17:04
  • and how can I change background color of the block body (not title). In Frankfurt this is always a bit lighter than set bg color, and I want it white. Dec 18, 2019 at 13:35

I think I totally misunderstood this question, but for what it's worth, here's my answer to (what I thought was) the question.

You could define another environment like so:

  \setbeamercolor{block body}{#2}
  \setbeamercolor{block title}{#3}

Then you can set the colours of the blocks as optional arguments:


This makes the background of the body blue and the background of the title block green. It also makes the body text white and the block title text red.

blocks of variable colour


You can also wrap the \setbeamercolor statement within a {} group. The change is only local

\setbeamercolor{block}{bg=red, fg=white}

For temporary use, say highlighting something, you can also use

\setbeamercolor{block}{bg=red, fg=white}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.