Skip to content

DIY Make box buttons more or less gray

This is one of our practical examples to override the semantic colors of the Modus themes (Stylistic variants using palette overrides). By default, the boxed buttons that appear in M-x customize and related are distinct shades of gray. The following set of overrides removes the gray from the active buttons and amplifies it for the inactive ones.

emacs-lisp
(setq modus-themes-common-palette-overrides
      '((bg-button-active bg-main)
        (fg-button-active fg-main)
        (bg-button-inactive bg-inactive)
        (fg-button-inactive "gray50")))

Reload the theme for changes to take effect.