Skip to content

DIY Make mouse highlights 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). In the following code block we show how to affect the semantic color mapping that covers mouse hover effects and related highlights:

emacs-lisp
;; Make the background an intense yellow
(setq modus-themes-common-palette-overrides
      '((bg-hover bg-yellow-intense)))

;; Make the background subtle green
(setq modus-themes-common-palette-overrides
      '((bg-hover bg-green-subtle)))

Reload the theme for changes to take effect.