mBm TUI (mbm2)
Menu

Themes

You want to Do
Try themes live /themes (or <leader>t), move through the list, return keeps one
Make one the default "theme": "nord" in tui.json, or keep the /themes choice
Follow the terminal's light or dark mode "theme_mode": "auto" (the default); dark or light pins it
Use your own colours Put a JSON theme in ~/.config/mbm/themes/ and pick it in /themes

Built-in Themes

aura ayu carbonfox catppuccin catppuccin-frappe catppuccin-macchiato cobalt2 cursor dracula everforest flexoki github gruvbox kanagawa lucent-orng material matrix mbm (the default) mercury monokai nightowl nord one-dark orng osaka-jade palenight rosepine solarized synthwave84 tokyonight vercel vesper zenburn, and system, which follows your terminal's own palette.

A Theme Of Your Own

A theme is one .json file in a themes directory: the global one (~/.config/mbm/themes/, or $XDG_CONFIG_HOME/mbm/themes/) or a project's .mbm/themes/. The file name is the theme's name; a project theme of the same name wins, and a subfolder's .mbm/themes/ wins over its parent folder's (v1 let the farthest folder win). The format is v1's, so a v1 theme works unchanged:

{
  "defs": { "ink": "#1b1e28", "paper": "#e6e9ef", "sun": "#f7941c" },
  "theme": {
    "primary":    { "dark": "sun",   "light": "sun" },
    "text":       { "dark": "paper", "light": "ink" },
    "background": { "dark": "ink",   "light": "paper" }
  }
}

defs names colours once; every key under theme (primary, secondary, accent, error, warning, success, info, text, textMuted, background, backgroundPanel, backgroundElement, …) gives a dark and a light value, either a #rrggbb colour or a defs name. The example above is shortened: start from a copy of a built-in theme, which lists every key the interface uses, and change the colours.

A file that cannot be read is skipped and named in the log; the others still load.

Dialog Colours

Dialogs (/model, /connect, /sessions and every other one), toasts and the close prompt of a tab are drawn on a background of their own, so they never look like one more message box of the conversation behind them. mbm2 works it out from the theme: the panel colour moved a little towards the theme's text colour, far enough to differ from the conversation's two backgrounds, and never so far that the text drops below a 4.5:1 contrast. A theme of your own gets the same treatment; there is no key to set. The completion list and the <leader> key panel keep the theme's backgroundMenu unless it matches the conversation's background or panel.

Reload Without Restarting

After editing a theme file, send the running client SIGUSR2 and it reads the theme files again and repaints with the theme you have selected — no restart:

kill -USR2 <pid>

This works on Linux and macOS; Windows has no such signal.

Related: Configuration, Configuration cookbook, Troubleshooting.

Published from revision f88fc66f 2026-11-30