This is one of our practical examples to override the semantic colors
of the Modus themes (Stylistic variants using palette overrides). In
this code block we show how to change the background of matching
delimiters when show-paren-mode is enabled. We also demonstrate how
to enable underlines for those highlights.
;; Change the background to a shade of magenta
(setq modus-themes-common-palette-overrides
'((bg-paren-match bg-magenta-intense)))
;; Enable underlines by applying a color to them
(setq modus-themes-common-palette-overrides
'((bg-paren-match bg-magenta-intense)
(underline-paren-match fg-main)))
;; Do not use any background color and instead apply an intense red
;; foreground.
(setq modus-themes-common-palette-overrides
'((bg-paren-match unspecified)
(fg-paren-match red-intense)))
Reload the theme for changes to take effect.