Change the theme and colours of a beamer presentation in LaTeX (usetheme)

\usetheme{Name} in the preamble selects a complete design, and \usecolortheme{name} replaces its colours. Single elements are changed with \setbeamercolor, \setbeamerfont and \setbeamertemplate.

The snippets use the document class beamer.

Choose a theme

Most themes that come with beamer are named after cities, for example Madrid, Berlin, Warsaw, Copenhagen, Singapore, Boadilla and Frankfurt. Write the name exactly as shown, with the capital letter. Without \usetheme, the theme default applies: white background, blue titles and no bars at the edges.

Complete document:

\documentclass{beamer}
\usetheme{Madrid}

\title{Measuring Wind Speed with Ultrasound}
\author{Anna Schmidt}
\institute{Example University}
\date{12 May 2025}

\begin{document}

\begin{frame}
\titlepage
\end{frame}

\begin{frame}{Motivation}
\begin{block}{Problem}
Cup anemometers wear out.
\end{block}
\end{frame}

\end{document}
Result
Page 1 of the compiled examplePage 1
Page 2 of the compiled examplePage 2

Open in the editor

Change the colours of the theme

A colour theme replaces the colours and keeps the layout of the theme. beaver uses dark red and grey, crane yellow, dove black and white, and albatross a dark blue background.

This goes into the preamble.

\usetheme{Madrid}
\usecolortheme{beaver}

Open in the editor

Use your own colour

structure is the colour from which titles, list bullets and bars are derived. \usecolortheme[named=brand]{structure} sets it to a colour defined with \definecolor. \setbeamercolor{element}{fg=..., bg=...} changes one element, here the title line of the slides; fg is the text colour and bg the background.

This goes into the preamble.

\usetheme{Madrid}
\definecolor{brand}{HTML}{005A9C}
\usecolortheme[named=brand]{structure}
\setbeamercolor{frametitle}{bg=brand, fg=white}

Open in the editor

Change fonts

beamer sets the slides in a sans-serif font. \usefonttheme{serif} switches them to the serif font. \setbeamerfont sets the size, the series (\bfseries) or the shape (\itshape) of one element.

This goes into the preamble.

\usefonttheme{serif}
\setbeamerfont{frametitle}{size=\Large, series=\bfseries}
\setbeamerfont{title}{size=\huge, shape=\itshape}

Open in the editor

Navigation symbols, slide numbers and logo

The first line removes the row of small navigation symbols in the lower right corner. The second replaces the footline with the slide number in the form 3/12; themes such as Madrid already show the number in their own footline, which this line would replace. \logo puts an image on every slide; where it appears depends on the theme.

This goes into the preamble.

\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{footline}[frame number]
\logo{\includegraphics[height=8mm]{logo.png}}

Pitfalls

Compiled with pdfLaTeX from TeX Live 2023.

Related pages