TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 21 down vote accepted

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

share|improve this answer
Many thanks! This was exactly what I was looking for. – dr.bunsen Oct 31 '11 at 17:04

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

share|improve this answer

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}
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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