Themes
Built-in color schemes, dark/light mode switching, and custom theme creation.
Built-in Dark Themes
Blade ships with 5 dark themes and 3 light themes. Activate any by setting theme in your [colors] section.
Catppuccin Mocha
theme = "catppuccin-mocha"
Dracula
theme = "dracula"
Nord
theme = "nord"
Solarized Dark
theme = "solarized-dark"
Tokyo Night
theme = "tokyo-night"
Built-in Light Themes
Blade includes 3 light themes for bright environments. Use them directly or let mode auto-switch.
Catppuccin Latte
theme = "catppuccin-latte"
Solarized Light
theme = "solarized-light"
Blade Light
theme = "blade-light"
Dark / Light / System Mode
Use the mode setting to switch between dark and light appearances. When set to "system", Blade detects your OS preference (Windows Settings, macOS Appearance, or GNOME color-scheme).
When mode is set, Blade auto-pairs dark and light themes:
| Dark Theme | Light Variant |
|---|---|
catppuccin-mocha | catppuccin-latte |
solarized-dark | solarized-light |
dracula | blade-light |
nord | blade-light |
tokyo-night | blade-light |
If you set mode = "light" without specifying a theme, Blade uses blade-light as the default light theme.
Font Color Override
Override the text color independently of the theme with font_color. This is applied after the theme, so the background and other colors come from the theme while the text uses your chosen color.
Activating a Theme
Set the theme key in your [colors] section. The theme overrides individual color settings.
Custom Themes
Create your own theme by placing a .toml file in the themes directory.
Theme file locations:
- macOS / Linux:
~/.config/blade/themes/ - Windows:
%APPDATA%\blade\themes\
Custom theme format
Then activate it with theme = "my-theme" in your config.
Manual Color Overrides
Instead of using a theme, you can set individual colors directly in the [colors] section.
theme is set, it overrides the individual foreground, background, cursor, and selection values. Remove or comment out the theme line to use manual colors.