Dr. Manuel Kuehner
* In "normal" beamer themes, I often use the color `alert` in `pgfplots` diagrams etc.
* This way, I use the same highlight color that is used for `\alert{text}` (alerted text).
* Strangely, in `metropolis`, the text command `\alert{text}` and the alert `color` lead to different colors.
* Is this a bug and how can access the `alert` color?
```
\documentclass{beamer}
\usetheme{metropolis}
\begin{document}
\begin{frame}
\frametitle{blub}
\alert{alert}\\
\textcolor{alert}{alert}
\end{frame}
\end{document}
```

Top Answer
samcarter
The colour for alerted text is stored in a beamer colour called `altered text`. You can access the foreground component of the beamer colour like this:
```
\documentclass{beamer}
\usetheme{moloch}% modern fork of the metropolis theme
\begin{document}
\begin{frame}
\frametitle{blub}
\alert{alert}\\
\textcolor{alerted text.fg}{alert}
\end{frame}
\end{document}
```
