[Tex/LaTex] Define a color for \title, \address and \phone commands of a CV

colormoderncv

How can I define colors for a moderncv LaTeX file, for the following commands?

  • \address
  • \title
  • \phone
  • \mail

Best Answer

The colors of moderncv are controlled by color0, color1 and color2 (the last one being used for the elements you mention). You can redefine these as you like (example for cyan):

\definecolor{color2}{RGB}{0,255,255}

Some predefined settings can be loaded through \moderncvcolor:

\moderncvcolor{blue}

where the argument can be blue, orange, green, red, purple, grey or black.

Finally, you could also use directly \textcolor in the argument of any moderncv command other than \email:

\phone{\textcolor{red}{123 456 7890}}
Related Question