Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Theming

Mosaico includes a built-in theme system based on the Catppuccin color palette. Themes provide a consistent color scheme across focus borders, monocle borders, and the status bar.

Configuration

Set the theme flavor in config.toml:

[theme]
flavor = "mocha"   # latte, frappe, macchiato, mocha

Available Flavors

FlavorStyle
latteLight theme
frappeMedium-dark theme
macchiatoDark theme
mochaDarkest theme (default)

Named Colors

When a theme is active, you can use named colors anywhere a color value is expected (borders, bar colors). The following 14 accent colors are available:

NameDescription
rosewaterWarm pink
flamingoSoft pink
pinkPink
mauvePurple
redRed
maroonDark red
peachOrange
yellowYellow
greenGreen
tealTeal
skyLight blue
sapphireBlue
blueVivid blue
lavenderSoft purple

Additional named colors for surfaces and text:

NameDescription
baseBase background
mantleDarker background
crustDarkest background
surface0Surface layer 0
surface1Surface layer 1
surface2Surface layer 2
overlay0Overlay layer 0
overlay1Overlay layer 1
overlay2Overlay layer 2
subtext0Subdued text
subtext1Slightly subdued text
textPrimary text color

Color Resolution

Colors are resolved in the following order:

  1. Hex value ("#1e1e2e") – used as-is
  2. Named color ("blue") – looked up in the active theme palette
  3. Empty string – falls back to the default for that setting

Existing hex color values in your configuration continue to work unchanged after enabling a theme. Named colors are optional.

Examples

Using named colors in bar.toml:

[colors]
background = "base"
foreground = "text"
accent = "blue"

Using named colors for borders in config.toml:

[borders]
focused = "blue"
monocle = "green"

Hot-Reload

Theme changes in config.toml are hot-reloaded. When the flavor changes, all named colors are re-resolved against the new palette and the bar is updated without restarting.