Themes
mecatui ships with three themes:
- aztec — the default: jade, turquoise, and gold on obsidian.
- mono — neutral greys with a blue accent.
- solar — a warm, light-leaning variant.
Select one at launch:
mecatui --theme mono
You can also set MECATUI_THEME=mono. Use --list-themes to print the themes available to this launch.
Light terminals get a light theme automatically
If you don't pass --theme/MECATUI_THEME and you're running in a real
terminal, mecatui asks your terminal for its background color at startup. If
the terminal reports a light background, mecatui switches to solar
automatically — no flag needed. A dark background, no answer (some terminals
and multiplexers don't respond), or piped/redirected output all keep the
default aztec theme.
Passing --theme/MECATUI_THEME — including --theme aztec — always wins
and skips this detection. There's no separate opt-out flag; pinning a theme is
the opt-out.
Add a partial palette
Theme files are JSON. A palette extends the Aztec base, so it only needs the slots it changes:
{
"name": "midnight",
"palette": {
"accent": "#7C5CFF",
"primary": "#5CC8FF",
"error": "#FF5C7C"
}
}
Save the file in one of these locations. Later locations take precedence when names collide:
$XDG_CONFIG_HOME/mecatui/themes/(normally~/.config/mecatui/themes/)<workspace>/.mecatui/themes/<cwd>/.mecatui/themes/- a directory passed with
--theme-dir
Then choose it with --theme midnight or MECATUI_THEME=midnight. Themes are discovered at startup; restart mecatui after adding or changing a file.
For all palette slots and the complete theming reference, see docs/tui.md.