From fa928105241aed9a289bd5c464ddb67b9420bd96 Mon Sep 17 00:00:00 2001 From: Alexander Edding <13305603+alexedding@users.noreply.github.com> Date: Sun, 21 Jun 2026 10:32:18 +0200 Subject: [PATCH] fix: Allow the customisation of the `contemporary` style (#298) Address #297: - Add the colour definitions required by generic header, body, and footer variants to `moderncvstylecontemporary.sty`, enabling style customisation via `\moderncvhead`, `\moderncvbody`, and `\moderncvfoot`. - Update `CHANGELOG` with a summary of the changes and a reference to the issue they close. --- CHANGELOG | 4 ++++ moderncvstylecontemporary.sty | 17 ++++++++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index eba34be..e6be243 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,7 @@ +version next +- Allow the customisation of the contemporary style (#297) + + version 2.6.0 (19 Jun 2026) - Upgrade to Fontawesome 6 (#183) - Document how to set custom strings for social command (#239) diff --git a/moderncvstylecontemporary.sty b/moderncvstylecontemporary.sty index 63ee6e0..731a198 100644 --- a/moderncvstylecontemporary.sty +++ b/moderncvstylecontemporary.sty @@ -47,8 +47,23 @@ %------------------------------------------------------------------------------- % Colors %------------------------------------------------------------------------------- -% skillmatrix +% head and footer +\colorlet{lastnamecolor}{color2} +\colorlet{namecolor}{lastnamecolor} +\colorlet{headrulecolor}{lastnamecolor!50} +\colorlet{firstnamecolor}{lastnamecolor!50} +\colorlet{titlecolor}{color2} +\colorlet{addresscolor}{color2} +\colorlet{quotecolor}{color1} +\colorlet{pictureframecolor}{color1} +% body \colorlet{bodyrulecolor}{color1} +\colorlet{sectioncolor}{color1} +\colorlet{subsectioncolor}{color1} +\colorlet{hintstylecolor}{color0} +% letter +\colorlet{letterclosingcolor}{color2} +% skillmatrix \colorlet{skillmatrixfullcolor}{color1} \colorlet{skillmatrixemptycolor}{color2!30}