skills/pi-agent/references/themes.md
Source: https://pi.dev/docs/latest/themes
Themes are JSON files defining TUI colors.
dark, light~/.pi/agent/themes/*.json.pi/themes/*.json after project trustthemes/ or pi.themesthemes array--theme, repeatableDisable with --no-themes. Select through /settings or {"theme": "my-theme"}. Pi detects terminal background on first run.
A theme has $schema, required name, optional vars, required colors, and optional export colors for HTML exports. All 51 color tokens must be defined.
Color values can be 6-digit hex strings, xterm 256-color indices, variable names from vars, or "" for terminal default.
Hot reload applies edits to the active custom theme for immediate feedback.