DIY Make Org agenda more or less colorful
This is one of our practical examples to override the semantic colors of the Modus themes (Stylistic variants using palette overrides). Here we provide three distinct code blocks. The first adds alternative and more varied colors to the Org agenda (and related). The second uses faint coloration. The third makes the agenda use various shades of blue. Mix and match at will, while also combining these styles with what we show in the other chapters with practical stylistic variants.
emacs-lisp
;; Make the Org agenda use alternative and varied colors.
(setq modus-themes-common-palette-overrides
'((date-common cyan) ; default value (for timestamps and more)
(date-deadline red-warmer)
(date-event magenta-warmer)
(date-holiday blue) ; for M-x calendar
(date-now yellow-warmer)
(date-scheduled magenta-cooler)
(date-weekday cyan-cooler)
(date-weekend blue-faint)))An example with faint coloration:
emacs-lisp
;; Make the Org agenda use faint colors.
(setq modus-themes-common-palette-overrides
'((date-common cyan-faint) ; for timestamps and more
(date-deadline red-faint)
(date-event fg-alt) ; default
(date-holiday magenta) ; default (for M-x calendar)
(date-now fg-main) ; default
(date-scheduled yellow-faint)
(date-weekday fg-alt)
(date-weekend fg-dim)))A third example that makes the agenda more blue:
emacs-lisp
;; Make the Org agenda use more blue instead of yellow and red.
(setq modus-themes-common-palette-overrides
'((date-common cyan) ; default value (for timestamps and more)
(date-deadline blue-cooler)
(date-event blue-faint)
(date-holiday blue) ; for M-x calendar
(date-now blue-faint)
(date-scheduled blue)
(date-weekday fg-main)
(date-weekend fg-dim)))Yet another example that also affects ‘DONE’ and ‘TODO’ keywords:
emacs-lisp
;; Change dates to a set of more subtle combinations. Deadlines are a
;; shade of magenta, scheduled dates are a shade of green that
;; complements that of the deadlines, weekday headings use the main
;; foreground color while weekends are a shade of gray. The DONE
;; keyword is a faint blue-gray while TODO is yellow.
(setq modus-themes-common-palette-overrides
'((date-deadline magenta-warmer)
(date-scheduled green-cooler)
(date-weekday fg-main)
(date-event fg-dim)
(date-now blue)
(prose-done fg-alt)
(prose-todo yellow)))Reload the theme for changes to take effect.