Skip to content

DIY Make the mode line borderless

This is one of our practical examples to override the semantic colors of the Modus themes (Stylistic variants using palette overrides). To hide the border around the active and inactive mode lines, we need to set their color to that of the underlying background.

Make the active mode line colorful.

Add padding to mode line.

emacs-lisp
;; Remove the border
(setq modus-themes-common-palette-overrides
      '((border-mode-line-active unspecified)
        (border-mode-line-inactive unspecified)))

;; Keep the border but make it the same color as the background of the
;; mode line (thus appearing borderless).  The difference with the
;; above is that this version is a bit thicker because the border are
;; still there.
(setq modus-themes-common-palette-overrides
      '((border-mode-line-active bg-mode-line-active)
        (border-mode-line-inactive bg-mode-line-inactive)))

Reload the theme for changes to take effect.