简体中文
Documentation Menu▾
Reference

Themes & Palettes

Configure Shotori's 19 built-in dark and light color palettes or craft custom overrides in ~/.config/shotori/theme.toml.

Shotori’s appearance lives in ~/.config/shotori/theme.toml (managed interactively on the Appearance page of shotori settings, or overridden per command via shotori --theme <NAME|FILE>).

Shotori Settings — Appearance & Built-in Themes

Built-In Base Palettes

Set base in theme.toml or pass --theme <NAME>:

Family Dark Palettes Light Palettes
Shotori Factory shotori-dark (default), capsule-dark shotori-light, capsule-light, high_contrast
Catppuccin catppuccin-mocha, catppuccin-macchiato, catppuccin-frappe catppuccin-latte
Tokyo Night tokyo-night tokyo-night-day
Rosé Pine rose-pine rose-pine-dawn
Gruvbox gruvbox-dark gruvbox-light
Community Classics nord, dracula solarized-light, github-light

Each theme is a fixed appearance by design: choosing a light palette such as catppuccin-latte gives light chrome even on a dark desktop, and a screenshot never shifts look unexpectedly mid-day.

theme.toml Token Overrides

base selects a complete surface ramp; every other field is an optional override on top of that base:

# ~/.config/shotori/theme.toml
base = "shotori-dark"

# Optional overrides (#RRGGBB or #RRGGBBAA):
accent = "#FF6A00"
dim_color = "#000000"
dim_opacity = 0.55

pin_border = "#FF6A0099"
chip_bg = "#16161DE6"
hint_text = "#AAAAAA"
btn_text = "#EEEEEE"
btn_hover_bg = "#FFFFFF26"

toolbar_bg = "#202028"
toolbar_text = "#E8E8EE"
toolbar_border = "#3E3E4C"
toolbar_hover = "#2C2C3A"
toolbar_selected = "#3A2823"
swatch_border = "#FFFFFF38"

Automatic Contrast & Accent Derivation

  • adapt_accent: If you override accent without explicitly setting toolbar_selected or pin_border, Shotori automatically mixes 12% of your accent into toolbar_bg for toolbar_selected and retints pin_border to 60% alpha.
  • WCAG 4.5:1 Guarantee: Badge text and selected button foregrounds check relative luminance automatically so custom bright or dark accents never produce unreadable icons.
  • Inspecting Resolved Colors: Run shotori --theme nord --print-theme to inspect every resolved RGBA value on stdout.

(Note: the 7 annotation brush swatches are configured in settings.toml under [toolbar] colors, separate from UI chrome themes.)