I'm working on a beamer theme. I know I can set colors for an element with

\setbeamercolor{element name}{fg=colorname}

Now there are a lot of possible elements, but I only need very few colors in my theme. So it would be nice to be able to overide all colors first with my default color an then only specify the few exceptions to my default color. Is this possible?

  • Perhaps consider switching to a different theme. – Werner Jan 22 '16 at 21:13
  • @Werner I'm writing a theme myself and want to keep the code clean. – Foo Bar Jan 22 '16 at 21:29

Most of the beamer element colors in a beamer template are dependent on other colors. Look for example at the default color theme. Nearly all the element's colors are dependent on these four "base colors".

\setbeamercolor{normal text}{fg=black,bg=white}
\setbeamercolor{alerted text}{fg=red}
\setbeamercolor{example text}{fg=green!50!black}

Also there are the four palette colors (again here the definition in the default color theme), which are kind of important.

\setbeamercolor{palette primary}{use=structure,fg=structure.fg}
\setbeamercolor{palette secondary}{use=structure,fg=structure.fg!75!black}
\setbeamercolor{palette tertiary}{use=structure,fg=structure.fg!50!black}
\setbeamercolor{palette quaternary}{fg=black}

So if you design your own color theme you should keep that in mind. Using these "base colors" make it much easier and faster to define your own color theme.

In short: if you use the default color theme, changing the beamer color structure should already change a lot.

| improve this answer | |

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.