# How do I change the alert color for tikz nodes in beamer?

In Beamer I can change the color used for alerted text using the \setbeamercolor command. Changing the color, however, does not change the color used for tikz nodes to which I pass the alert option.

The following is a MWE:

\documentclass{beamer}
\usepackage{tikz}

\begin{document}

\begin{frame}

\begin{tikzpicture}
\node (A) {Node A};
\end{tikzpicture}

\end{frame}

\end{document}


The result is this:

Note that the color is correctly changed to green in the normal text, but that the tikz node ignores the color I chose and uses the default red.

How do I change the color used for nodes to which I pass the alert option? That is, how do I ensure that passing the alert option to node B makes it green?

• @TeXnician Doesn't seem to work. I added the lines \usepackage{xcolor} and \definecolor{alert}{rgb}{1,0,0} and node B is still red. – davitenio Jun 5 '17 at 17:53
• Your version with {rgb}{1,0,0} defines red as r in rgb stands for red ;) – TeXnician Jun 5 '17 at 17:56
• Oops! Yeah, I made a silly mistake there. – davitenio Jun 5 '17 at 17:59

You can adjust it as every other color. In this case f.i. using \colorlet.

\documentclass{beamer}
\usepackage{tikz}

\begin{document}

\begin{frame}