Overview
Before installing a theme package, check what Pi includes natively: the default system theme queries your terminal’s foreground, background, and 16 ANSI colors while keeping at least 4.5:1 WCAG text contrast, and setting "theme": "light/dark" automatically switches between any light and dark pair when your terminal reports appearance changes.
Community theme packages make sense when you want a specific truecolor palette, a large curated pack, a custom startup header, or environment-variable and clock-based switching in terminals or SSH/tmux sessions that do not report appearance.
Compare by use case
Scroll the table horizontally; configuration and sources follow below.
| Resource & purpose | Mechanism | Dependencies & keys | Data sent | Failure behavior | Evidence |
|---|---|---|---|---|---|
| pi-tokyo-night Tokyo Night dark palette (51 tokens) paired with a custom ASCII header extension. | Provides themes/tokyo-night.json (#1a1b26 background, #7aa2f7 accent, plus HTML export colors) and extensions/tokyo-night-header.ts, which calls ctx.ui.setHeader on session_start and registers /default-header. | Pi TUI with truecolor recommended for exact hex rendering. | None. Local theme JSON and local TUI header rendering only. | If the custom header clashes with terminal width (<60 cols), it drops the right-hand decoration box and renders the logo alone. Run /default-header to restore Pi’s built-in header. | Theme token definitions ↗ |
| @sherif-fanous/pi-catppuccin Pure theme package with all four Catppuccin flavors (Latte light + 3 dark). | Theme-only package (pi.themes: ["./themes"], no JS/TS extensions) shipping catppuccin-latte (light), catppuccin-frappe, catppuccin-macchiato, and catppuccin-mocha (dark) with explicit appearance, optional UI tokens, and HTML export colors. | Pi. Pairs directly with Pi’s built-in "theme": "catppuccin-latte/catppuccin-mocha" automatic mode without an extra sync extension. | None. Static theme JSON files only; zero executable code. | Validated by Pi at startup and /reload. Installing another package that also defines catppuccin-mocha (such as @victor-software-house/pi-curated-themes) triggers a Pi resource collision warning. | Mocha dark theme ↗ |
| @victor-software-house/pi-curated-themes 65 dark iTerm2-adapted themes mapped semantically to Pi’s 51 color tokens. | Pure theme pack plus one skill (pi.themes: ["./themes"], pi.skills: ["./skills"], no runtime extension). Derives semantic roles (green/teal success, red error, amber warning with ≥25° hue separation) and leaves text/userMessageText as "" to inherit terminal foreground. | Pi. The repository’s optional local preview TUI (mise run preview) uses mise and Bun, while installing the npm package into Pi needs only Pi. | None. Static theme JSON files and a local skill markdown file; no network calls. | Collides with standalone theme packages sharing the same slug (such as catppuccin-mocha or flexoki-dark). Invalid or missing custom terminal foreground falls back to Pi’s theme defaults. | Package manifest and bundled assets ↗ |
| pi-terminal-theme ANSI 0..15 terminal-palette theme plus optional slots 16..23 tinted variant. | Pure theme package shipping terminal (maps UI tokens directly to ANSI indices 0..15 and "" default backgrounds) and terminal-tinted (adds indices 16..23 for message, tool, and selection backgrounds). | Pi and Node.js >= 20. terminal-tinted additionally requires a terminal profile that remaps palette slots 16..23. | None. Static theme JSON files only. | On terminals without custom slots 16..23, terminal-tinted resolves against the default xterm 256-color cube, which can produce harsh or unreadable panel backgrounds; switch to terminal instead. | Sunset notice and slot 16..23 warning ↗ |
| pi-theme-switcher Switches dark or light themes by env vars (PI_AGENT_THEME / THEME_MODE) or time of day. | TUI extension evaluating PI_AGENT_THEME (dark/light) -> THEME_MODE (night/day) -> local clock (nightStart 23 to nightEnd 7) on session_start and every 60 seconds via setInterval(...).unref(), applying darkTheme/lightTheme with ctx.ui.setTheme. Skips RPC, print, and JSON sessions. | Pi >= 0.86.0 < 2.0.0 in interactive TUI mode. Global configuration lives at <agent-dir>/theme-switcher.json. | None. Reads local environment variables, local system clock, and local JSON config files only. | Falls back to built-in dark/light if a custom theme fails to load and retries on later ticks. If ctx becomes stale after reload/session replacement, warns via notify and stops polling until next session_start. Partial nightStart/nightEnd configs are rejected with a warning. | Session lifecycle and 60s polling ↗ |
Installation & operating boundaries
pi-tokyo-night
Tokyo Night dark palette (51 tokens) paired with a custom ASCII header extension.
pi install npm:pi-tokyo-night- Mechanism
- Provides themes/tokyo-night.json (#1a1b26 background, #7aa2f7 accent, plus HTML export colors) and extensions/tokyo-night-header.ts, which calls ctx.ui.setHeader on session_start and registers /default-header.
- Prerequisites
- Pi TUI with truecolor recommended for exact hex rendering.
- Data scope
- None. Local theme JSON and local TUI header rendering only.
- Failure behavior
- If the custom header clashes with terminal width (<60 cols), it drops the right-hand decoration box and renders the logo alone. Run /default-header to restore Pi’s built-in header.
- Known limitations
- Dark-only (no light variant). Despite README wording claiming automatic activation on install, tokyo-night-header.ts does not call setTheme; select tokyo-night in /settings or settings.json. Ships executable extension code alongside the theme JSON and omits explicit appearance and optional scrollbar/searchMatch fields.
Source / documentation reviewed · v1.0.0 · f1921b6dfc9b6cc851d8de94e09e308e685cf4be
@sherif-fanous/pi-catppuccin
Pure theme package with all four Catppuccin flavors (Latte light + 3 dark).
pi install npm:@sherif-fanous/pi-catppuccin- Mechanism
- Theme-only package (pi.themes: ["./themes"], no JS/TS extensions) shipping catppuccin-latte (light), catppuccin-frappe, catppuccin-macchiato, and catppuccin-mocha (dark) with explicit appearance, optional UI tokens, and HTML export colors.
- Prerequisites
- Pi. Pairs directly with Pi’s built-in "theme": "catppuccin-latte/catppuccin-mocha" automatic mode without an extra sync extension.
- Data scope
- None. Static theme JSON files only; zero executable code.
- Failure behavior
- Validated by Pi at startup and /reload. Installing another package that also defines catppuccin-mocha (such as @victor-software-house/pi-curated-themes) triggers a Pi resource collision warning.
- Known limitations
- Fixed hex palettes require truecolor terminals for accurate pastel tones and approximate on 256-color terminals. Note: the directory’s one-line summary highlights Mocha, whereas the actual v0.3.0 package includes all four flavors.
Source / documentation reviewed · v0.3.0 · 8074c2df9d2f8e3126e610b7d36286dd119615ba
@victor-software-house/pi-curated-themes
65 dark iTerm2-adapted themes mapped semantically to Pi’s 51 color tokens.
pi install npm:@victor-software-house/pi-curated-themes- Mechanism
- Pure theme pack plus one skill (pi.themes: ["./themes"], pi.skills: ["./skills"], no runtime extension). Derives semantic roles (green/teal success, red error, amber warning with ≥25° hue separation) and leaves text/userMessageText as "" to inherit terminal foreground.
- Prerequisites
- Pi. The repository’s optional local preview TUI (mise run preview) uses mise and Bun, while installing the npm package into Pi needs only Pi.
- Data scope
- None. Static theme JSON files and a local skill markdown file; no network calls.
- Failure behavior
- Collides with standalone theme packages sharing the same slug (such as catppuccin-mocha or flexoki-dark). Invalid or missing custom terminal foreground falls back to Pi’s theme defaults.
- Known limitations
- Dark-only collection (all 65 shipped JSON themes are dark, so automatic light/dark pairing requires another light theme). Adds 65 entries to /settings and automatically exposes its bundled adapt-ghostty-theme-to-pi skill.
Source / documentation reviewed · v0.2.1 · ac8e0c8e890a8ee6ae926c6a195f16b9f0033bbb
pi-terminal-theme
ANSI 0..15 terminal-palette theme plus optional slots 16..23 tinted variant.
pi install npm:pi-terminal-theme- Mechanism
- Pure theme package shipping terminal (maps UI tokens directly to ANSI indices 0..15 and "" default backgrounds) and terminal-tinted (adds indices 16..23 for message, tool, and selection backgrounds).
- Prerequisites
- Pi and Node.js >= 20. terminal-tinted additionally requires a terminal profile that remaps palette slots 16..23.
- Data scope
- None. Static theme JSON files only.
- Failure behavior
- On terminals without custom slots 16..23, terminal-tinted resolves against the default xterm 256-color cube, which can produce harsh or unreadable panel backgrounds; switch to terminal instead.
- Known limitations
- Sunsetted upstream: the README recommends Pi >= 0.79.7’s native light/dark pairing instead (and Pi’s built-in system theme already checks contrast against terminal colors). Keep this only when you want raw ANSI 0..15 mapping without Pi’s contrast adjustment.
Source / documentation reviewed · v0.2.0 · 3bd1c02162d73b9af0c96a6cef59bc230b90c999
pi-theme-switcher
Switches dark or light themes by env vars (PI_AGENT_THEME / THEME_MODE) or time of day.
pi install npm:pi-theme-switcher- Mechanism
- TUI extension evaluating PI_AGENT_THEME (dark/light) -> THEME_MODE (night/day) -> local clock (nightStart 23 to nightEnd 7) on session_start and every 60 seconds via setInterval(...).unref(), applying darkTheme/lightTheme with ctx.ui.setTheme. Skips RPC, print, and JSON sessions.
- Prerequisites
- Pi >= 0.86.0 < 2.0.0 in interactive TUI mode. Global configuration lives at <agent-dir>/theme-switcher.json.
- Data scope
- None. Reads local environment variables, local system clock, and local JSON config files only.
- Failure behavior
- Falls back to built-in dark/light if a custom theme fails to load and retries on later ticks. If ctx becomes stale after reload/session replacement, warns via notify and stops polling until next session_start. Partial nightStart/nightEnd configs are rejected with a warning.
- Known limitations
- Config path discrepancy: README documents .pi/theme-switcher.json for project-local config, whereas src/config.ts actually reads .pi/agent/theme-switcher.json. Does not subscribe to OS/terminal appearance events; prefer Pi’s native "theme": "light/dark" when your terminal supports appearance reports.
Source / documentation reviewed · v1.3.0 · 2f30c28ab56dc239144a07ecd1207d02b6c2e71b
Built-in system & light/dark mode vs community packages
Pi’s built-in system theme adapts to your terminal palette, and any two installed themes can be paired as "lightTheme/darkTheme" in settings.json or passed once via pi --use-theme light/dark.
Because Pi now handles terminal appearance notifications natively, older ANSI wrappers such as pi-terminal-theme have been sunsetted upstream. Use pi-theme-switcher only when you need PI_AGENT_THEME, THEME_MODE, or clock-based schedules rather than terminal appearance events.
Pure theme JSONs vs packages with executable extensions
@sherif-fanous/pi-catppuccin ships static theme JSON files only, with zero runtime JS/TS hooks. @victor-software-house/pi-curated-themes likewise ships static JSON themes plus one local Ghostty-adaptation skill and no runtime extension.
By contrast, pi-tokyo-night bundles extensions/tokyo-night-header.ts, which replaces Pi’s default startup header on session_start (reversible via /default-header), and pi-theme-switcher runs a 60-second polling timer in TUI sessions. Review extension code when you only expected colors.
Theme name collisions, truecolor, and ANSI slots
Pi requires every loaded theme name to be unique and reports duplicate names as resource collisions. Installing both @sherif-fanous/pi-catppuccin and @victor-software-house/pi-curated-themes collides on catppuccin-mocha.
Fixed hex palettes require a truecolor terminal for intended shades and are approximated on 256-color terminals. For ANSI-based themes, pi-terminal-theme’s terminal-tinted variant reads palette indices 16..23; if your terminal does not remap those slots, xterm’s 256-color cube can make panel backgrounds harsh or unreadable.
Preview a theme before saving settings
Use --use-theme to test a single theme or a light/dark pair for one invocation without modifying ~/.pi/agent/settings.json, or select it interactively in /settings.
Theme names cannot contain / because Pi reserves that character for automatic light/dark pairs.
pi --use-theme catppuccin-latte/catppuccin-mocha
# ~/.pi/agent/settings.json
{
"theme": "catppuccin-latte/catppuccin-mocha"
}Related & alternative options
- @spences10/pi-themes →
11 themes: Catppuccin Mocha, Dracula, Gruvbox Dark, Night Owl, Neon Noir, Nord, Rosé Pine, Tokyo Night, and more.
- pi-themes-rose-pine →
Original Rosé Pine dark variant with soft pastel rose tones.
- @smoose/pi-themes →
Light/dark pairing toggle: Everforest, Tundra, Rosé Pine, OneDark, Gruvbox, and more.
- pi-system-theme →
Syncs Pi theme with macOS light/dark appearance.
- @ogulcancelik/pi-ghostty-theme-sync →
Syncs Pi theme with Ghostty terminal colors.
- pi-ansi-themes →
Standard 16-color ANSI themes to avoid conflicts with terminal themes.
Primary sources & verification scope
Source review and runtime testing are distinguished above. Features, performance and savings not marked “Tested” are not measurements by Pi Index.