Themes¶
Choose a palette without restarting your coding session. Theme changes repaint retained conversation lines, syntax highlighting, dialogs, status bars, search/selection highlights, and future HTML exports. Drafts, queued prompts, tool history, and the transcript viewport remain in place.
SuperQode is the default theme. The header shows the current palette beside the navigation, or on a second header line in a narrow terminal. Click Theme: β¦ β to open the gallery. Applying a theme shows the same confirmation card as a model connection and records the change in Activity. Your saved selection is restored on the next launch.
Choose and preview¶
superqode --theme light
superqode --theme system
superqode --theme auto
superqode --theme light/tokyonight
superqode theme list
In the TUI, use :theme or :theme browse to open the searchable gallery. All includes installed palettes and the offline community catalog; Installed filters to themes ready to use. Light and Dark are explicit appearance filters. Search by name, appearance, source (custom), or collection (Awesome Pi). Arrow keys preview your actual prompt, transcript, diffs, header and notifications, along with a small coding sample. F4 reduces the gallery to a bottom strip so you can inspect the workspace; arrows continue switching previews. Tab moves between controls; Enter applies and saves, installing a catalog theme first when needed. Escape restores the original appearance without installing a preview or changing your draft and selection. Use :theme nord to apply a name directly.
Ctrl+S (or f when the list has focus) toggles a favorite. Favorites and Recent narrow the gallery; All clears these filters. :theme next cycles favorites and installs a catalog favorite if needed. Undo or :theme previous restores the last selected theme, including an automatic selection or light/dark pair. :theme undo is an alias. Favorites and recent choices persist in your private appearance preferences.
Appearance settings¶
Open :settings or :appearance from the prompt or command palette. One screen brings together the gallery, a fixed theme, automatic SuperQode light/dark switching, terminal-derived colors, a custom light/dark pair, comfortable/compact spacing, reduced animation, simple ASCII status icons, a blinking or steady prompt cursor, and mouse reporting. Pair selectors show installed palettes of the appropriate appearance; install additional palettes through the gallery first.
Turn mouse reporting off for terminal text selection and use Tab, arrows, Enter and Escape for application controls. The setting also applies after returning from an external editor. Reduced animation makes the prompt cursor steady. These controls affect the drawn prompt cursor and application mouse reporting; native cursor placement for IME is separate.
Export JSON writes the staged selection and preferences to a new file with an appearance schema reference, without applying or saving the preview. The document contains theme and appearance fields compatible with ~/.superqode/config.json. Merge those fields into an existing configuration to retain unrelated settings. Custom themes must be installed separately on the destination machine.
Changes preview live. F4 (or w outside a text field) exposes the workspace. Apply & save saves the selection and preferences together; Escape restores them. Reduced animation retains a steady working status while stopping sweeps and rotating prompt/thinking indicators. Simple icons preserve clickable header and hint controls; agent responses and code retain their original characters.
Visual customizer¶
Use :theme customize for the active palette, or F3 / e / Edit for the selected gallery palette. Adjust the accent, background, panel background and text; light/dark canvas presets provide starting points. The actual workspace previews valid edits. The status shows requested and rendered text contrast immediately, including automatic readability corrections. Invalid edits retain the last working preview and disable saving.
Choose SuperQode JSON or Pi JSON beside the export path. Native exports include native fields and extension colors. Pi exports map supported roles to the rendered colors and flatten source variables; native fields and extension colors without a Pi equivalent are omitted. Exporting does not apply the preview or overwrite an existing file.
Export an installed palette from the shell and inspect compatibility:
superqode theme export nord ./nord-copy.json
superqode theme export nord ./nord-pi.json --format pi
superqode theme compatibility ./nord-copy.json
Exports include editor schema references. Built-in palettes receive a -copy name so their exported documents can be imported without using a reserved name. Native exports preserve the rendered semantic colors; Pi compatibility reports the exported name, mapped roles and omitted extension colors. Pi exports reproduce mapped colors rather than every SuperQode surface and native setting.
Choose a unique lowercase theme name. Save & apply installs a native JSON theme in your user theme directory and selects it. Export JSON writes a reusable native theme to your chosen path while leaving the workspace in preview. Existing files are retained. Escape cancels the preview; an explicitly exported file remains available to share. F4 shows the workspace while editing.
The initial collection has seven original dark palettes, a native light palette, terminal-derived system, auto, four MIT-licensed community palettes (Ayu Light, Ayu Mirage, Halcyon Rivet, and Saffron Cavern), and four SuperQode light palettes: Paper Light, Solar Dawn, Nordic Snow, and Sakura Light. Every Awesome Pi catalog palette is dark, so the bundled light palettes are what the Light filter and light/dark pairs offer. Run the list command for the complete installed collection.
The offline catalog includes all 71 palettes from Awesome Pi Themes 1.2.19. Two are already bundled, giving a fresh installation 87 distinct choices. No network connection or npm setup is needed. Preview before selecting; the gallery shows whether Enter will apply or install and apply. To install one, several, or the entire collection from a shell:
superqode theme browse
superqode theme browse ocean
superqode theme install alien-candy cosmic-lagoon
superqode theme install --all
CLI installation copies palettes into ~/.superqode/themes/ without changing your saved choice. Repeated installation retains existing files and accepts description-only edits; modified colors produce a conflict message. Select an edited installed theme in the gallery to apply your version. In the TUI, :theme install NAME installs, applies, and saves; bare :theme install opens the gallery. :theme install --all installs the collection, after which :theme lets you choose. :theme help shows the available actions. Unknown names suggest close matches and point back to the gallery.
The startup --theme (alias --use-theme) option lasts for that launch; it does not change the saved preference. Installed names take priority over same-named project files; use an explicit path such as ./light to load a file. TUI selection saves atomically to ~/.superqode/config.json, preserving unrelated settings. If saving fails, the palette still applies and the error is shown. Invalid, excessively nested, non-regular, or larger-than-1-MiB preference files are retained and reported instead of crashing or being overwritten.
Follow the terminal¶
system derives its canvas and surface colors from the terminal's foreground/background and ANSI palette. On POSIX terminals, SuperQode sends OSC 10, 11, and 4 queries asynchronously; it does not delay startup. Late replies and appearance changes repaint the active session, including an open theme preview. Delayed RGB fragments retain their framing independently of the Escape-key timeout. Navigation and paste can interrupt an unfinished report; escape sequences inside bracketed paste remain paste content. Middle-gray terminal backgrounds retain readable body text across raised, hover, and active surfaces.
auto chooses the native light or SuperQode dark palette. A light-name/dark-name pair selects the first name for light appearance and the second for dark. Keep using an explicit named palette if your terminal does not report colors.
Without a saved choice, SuperQode starts with auto. On dark or undetected terminals this is the SuperQode palette, so existing dark setups look the same; saved choices are never changed.
Light or dark is decided in this order: the reported background (OSC 11), the terminal's colour scheme report (DEC mode 2031), SUPERQODE_TERMINAL_BACKGROUND, COLORFGBG (backgrounds 7 and 9 to 15 are light, others dark, default is ignored), then dark. Feedback bundles record which source decided. Terminals that support mode 2031 notify SuperQode when their scheme changes and are queried again only then; other terminals are queried every 30 seconds while a terminal-following theme is active.
Inside tmux, SuperQode sends each query directly (tmux 3.3 and later answer from their own view of the outer terminal) and through DCS passthrough, which reaches the outer terminal when set -g allow-passthrough on is set. If neither answers, set COLORFGBG or SUPERQODE_TERMINAL_BACKGROUND, or choose a named palette. tmux 3.5 does not pass DEC mode 2031 through to the outer terminal, so inside tmux a light/dark switch is picked up by the 30-second query rather than immediately. scripts/check_tui_tmux.py runs these checks against a real tmux server.
Colour depth and plain output¶
NO_COLOR (any non-empty value) and TERM=dumb print the launch banner without colour and render the TUI in monochrome (shades of grey, which Textual uses for NO_COLOR); TERM=dumb also limits output to the 16 standard colour codes. COLORTERM=truecolor or 24bit, a *-direct TERM, Windows Terminal, iTerm2 and WezTerm get 24-bit colour. Other *-256color terminals, including screen-256color and tmux-256color, get the nearest xterm 256-colour values, and anything else the 16 standard colours. Set TEXTUAL_COLOR_SYSTEM (truecolor, 256, standard) to override detection.
Windows and non-terminal hosts retain their native Textual input driver and use environment/default appearance fallbacks. The POSIX OSC implementation has been tested in a real macOS PTY; Windows/Linux terminal appearance reporting still needs hands-on validation. Where querying is unavailable, set SUPERQODE_TERMINAL_BACKGROUND and SUPERQODE_TERMINAL_FOREGROUND to six-digit hex colors before launching. COLORFGBG supplies an additional appearance hint.
Create a custom palette¶
superqode theme init ./my-theme.json --name my-theme --base light
superqode theme check ./my-theme.json
superqode --theme ./my-theme.json
Native themes use a versioned JSON schema shipped at superqode/data/themes/schema.json. Start from an existing palette with the init command so all available keys are discoverable. A small valid document is:
{
"version": 1,
"name": "my-theme",
"description": "My project palette",
"appearance": "dark",
"colors": {"bg_void": "#161821"},
"tokens": {"error": "#e95678"}
}
colors overrides native palette fields. tokens overrides semantic roles, including syntax, Markdown, diff, selection, tool surfaces, and export backgrounds. vars can hold reusable color values. Supported color forms are three/six-digit hex, ANSI indices 0-255, variable references, oklch(...), okhsl(...), and an empty string for the appearance fallback. Imported values resolve to concrete RGB; ANSI indices use Rich's standard palette. Perceptual colors are converted to sRGB.
Theme names must be unique lowercase slugs of at most 64 characters. Built-in names are reserved. Files are limited to 256 KiB. Validation rejects unknown native keys, missing required Pi roles, circular variables, invalid colors, and surfaces that cannot share readable text. Effective body/status/syntax text is adjusted to at least 4.5:1 on the supported text surfaces. This may brighten or darken source colors; validation reports the resulting palette's contrast, not the unmodified source's.
Import Pi palettes¶
superqode theme check ./pi-theme.json --json
superqode theme import ./pi-theme.json
superqode --theme imported-name
Pi JSON palettes are converted to the native schema in ~/.superqode/themes/. All 51 required and five optional Pi v1.1.0 roles are recognized. Additional extension color roles are preserved under extensions and reported by the checker; they do not alter SuperQode's UI. Imports never execute upstream extensions and refuse name/file collisions. Importing from the CLI does not change your saved selection.
In the TUI, Import JSON⦠(F2 in the gallery) or bare :theme import opens a file-path dialog. Paste a path (spaces need no quotes in the dialog), inspect its preview, and choose Import & apply. Invalid files and duplicate names show an inline error, leaving the dialog open for correction. Escape cancels. The command :theme import "path with spaces.json" remains available for direct import, apply, and save.
The catalog pins Awesome Pi Themes revision a268b1aca442d348705e7733dc3db9af927079e0; each source file was checked against its Git blob hash. All 71 palettes pass the importer. This is palette compatibility, not compatibility with Pi's TypeScript extensions. Community palette files carry their upstream MIT licenses; see the repository NOTICE and the source URLs from superqode theme browse --json.
Edit and reload¶
User JSON files are discovered at startup and when the picker opens. The active user file is checked every half second and hot-reloads after a valid edit. Themes linked from a dotfiles repository also reload, including when the link is repointed or the entire themes directory is a symlink. A partial write, invalid edit, or deleted file keeps the last working palette and reports an actionable error. Use :theme reload to rescan user themes manually. It does not change the saved preference.
Project files load only when you explicitly provide their path with --theme; they do not load automatically or hot-reload. Import a project palette into the user directory if you want live editing. Existing HTML files retain their colors; newly exported files use the active palette.
If you explicitly select and save a project palette in the TUI, SuperQode installs a native copy into your user themes directory so the selection survives the next launch. This also applies to project palettes in saved appearance pairs. The project file is retained, and an existing destination file is never overwritten.