Skip to main content
This guide is for developers customizing Atomic’s terminal colors. By the end of this page, you can switch built-in palettes, match your terminal’s light or dark appearance automatically, and create a custom JSON theme with live hot reload. For the complete JSON schema, all 51 required and 3 optional color tokens, color formats, and terminal color modes, see Theme format reference.

Before you begin

Before creating a custom theme, confirm the following:
  • Atomic is installed and available on your PATH.
  • For project themes under .atomic/themes/, you have granted project trust with /trust or --approve.

Built-in themes

Atomic ships seven built-in themes:
  • system: derives colors from your terminal’s reported foreground, background, and ANSI palette, and follows appearance changes where supported.
  • dark: dark palette (the fallback when a theme fails to load).
  • light: light palette.
  • catppuccin-frappe: medium-dark Catppuccin palette.
  • catppuccin-latte: light Catppuccin palette.
  • catppuccin-macchiato: darker Catppuccin palette.
  • catppuccin-mocha: deepest dark Catppuccin palette.
If your terminal doesn’t report colors for system, Atomic uses ANSI palette colors and faint secondary text.
Choose a distinct "name" for custom themes. The name system is reserved, so Atomic ignores any custom theme named system. Reusing another built-in name (dark, light, or catppuccin-*) overrides interactive rendering, while /export still uses the built-in theme and live hot reload turns off.

Select a theme

Atomic doesn’t have a /theme slash command. Choose a theme in /settings, pass --use-theme, or edit settings.json (see Interface and display settings). To set a single theme, add "theme" to ~/.atomic/agent/settings.json (%USERPROFILE%\.atomic\agent\settings.json on Windows) or a trusted project’s .atomic/settings.json:
To follow your terminal’s light or dark appearance automatically, set "theme" to "<light-theme>/<dark-theme>" with one / and non-empty theme names on both sides (Atomic trims surrounding spaces). For example:
Atomic chooses the light or dark side in this order:
  1. Terminal-reported background color (waits up to 100 ms at startup and applies late replies asynchronously).
  2. Terminal appearance change notifications (subscribed when using a light/dark pair or system, not when theme is unset).
  3. The COLORFGBG environment variable (see Terminal compatibility for index mapping).
  4. Dark theme fallback.
Keep the following behavior in mind when configuring themes:
  • A malformed pair with extra / characters or an empty side (such as "light/") falls back silently to the detected terminal default (dark or light).
  • Setting "theme": "" fails with Theme not found: and falls back to dark.
  • The main chat keeps your terminal’s default background (including transparency), while headers, footers, and tool cards keep their theme colors.
  • NO_COLOR (any value) or FORCE_COLOR=0 disables all theme colors and text styles. FORCE_COLOR=1 or 2 caps output at 256 colors, and NO_COLOR always wins over FORCE_COLOR (see Terminal compatibility and Environment variables).

Initial theme

To override the theme for one interactive run without changing settings.json, pass --use-theme:
--use-theme applies in interactive mode only; Atomic ignores it in print, JSON, and Remote Procedure Call (RPC) modes. Selecting a different theme later in /settings applies immediately and saves normally. If the requested name is unknown or invalid, Atomic prints Failed to load theme "<name>": ... followed by Fell back to dark theme.

Create a custom theme

Follow these steps to create a custom theme and confirm live hot reload:
1

Create the themes folder

Create a custom themes directory under ~/.atomic/agent/themes/ (global) or .atomic/themes/ (trusted project):
2

Write the theme JSON file

Save ~/.atomic/agent/themes/ocean-slate.json with $schema for editor completion and every required token (plus optional scrollbarThumb, as in the following starter theme; see Color tokens):
3

Reload your session

Optional: If Atomic is already open, run /reload so Atomic discovers the theme file.
4

Select the theme and verify hot reload

Open /settings and select ocean-slate. Confirm that the terminal palette switches immediately, then change "primary" in ocean-slate.json and save to verify that live hot reload updates colors without restarting.

Live hot reload

Atomic watches the active custom theme file on disk and reloads it automatically on save (100 ms debounce), falling back to 1-second polling if native file watching isn’t available on that path. Hot reload behaves as follows:
  • Works for global themes, project themes, package themes, --theme <path> files, and custom themes whose filename differs from their JSON "name".
  • Keeps the last valid theme active if you save invalid JSON mid-edit, then updates on your next valid save.
  • Doesn’t run for system, built-in theme names, or in-memory Theme instances passed through extension setTheme().
Theme validation is strict: Atomic rejects unknown top-level keys and unknown properties under colors, workingIndicator, or export, and reports invalid files on startup and /reload. Put reusable custom colors in vars.

Where themes load from

Atomic discovers custom themes from the following sources:
  • Global: ~/.atomic/agent/themes/*.json (%USERPROFILE%\.atomic\agent\themes\*.json on Windows).
  • Project (requires project trust): .atomic/themes/*.json.
  • Packages: themes/ directories or atomic.themes entries in package.json (see Create and publish packages).
  • Settings: The themes array in global or project settings.json, accepting files, directories, and filter patterns (!glob, +path, and -path with ~ expansion; see Package filtering).
  • CLI: --theme <path> (repeatable; accepts a .json file or a directory) loads themes; --use-theme <name> activates one for that run.
Discovery and precedence follow these rules:
  • Auto-discovery in ~/.atomic/agent/themes/ and .atomic/themes/ is non-recursive and skips dotfiles, node_modules, and files matched by .gitignore, .ignore, or .fdignore.
  • Explicit --theme <dir> paths read all *.json files in that directory without applying dotfile or .gitignore filters.
  • Passing --no-themes disables auto-discovered and configured-package themes. Built-in themes, themes shipped in -e / --extension packages, and explicit --theme <path> files or directories still load.
  • When multiple custom themes declare the same "name", Atomic reports a collision diagnostic and keeps the first match: -e packages win first, then project overrides global, both override configured packages, and explicit --theme paths apply last (see Resource precedence order).
Legacy .pi theme locations (~/.pi/agent/themes/*.json, .pi/themes/*.json, and pi.themes in package.json) continue to load alongside .atomic paths.

Tips

Use these design checks when refining a custom theme:
  • Dark terminals: Pair bright, saturated accents with clear contrast against dark backgrounds.
  • Light terminals: Use darker, muted tones to keep long transcripts comfortable to scan.
  • Color harmony: Define a small base palette (such as Nord, Gruvbox, or Tokyo Night) in vars and reference it across tokens.
  • Visual coverage: Test user messages, tool pending, success, and error cards, diffs, Markdown code blocks, and long wrapped lines.
  • VS Code terminal: Set terminal.integrated.minimumContrastRatio to 1 so VS Code doesn’t shift your palette colors.

Troubleshooting

The following table lists common theme errors and how to fix them:

Next steps

Read the Theme format reference to inspect every color token, color format, and terminal detection rule, or bundle your theme in a shareable Atomic package.