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/trustor--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.
system, Atomic uses ANSI palette colors and faint secondary text.
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:
"theme" to "<light-theme>/<dark-theme>" with one / and non-empty theme names on both sides (Atomic trims surrounding spaces). For example:
- Terminal-reported background color (waits up to 100 ms at startup and applies late replies asynchronously).
- Terminal appearance change notifications (subscribed when using a
light/darkpair orsystem, not whenthemeis unset). - The
COLORFGBGenvironment variable (see Terminal compatibility for index mapping). - Dark theme fallback.
- A malformed pair with extra
/characters or an empty side (such as"light/") falls back silently to the detected terminal default (darkorlight). - Setting
"theme": ""fails withTheme not found:and falls back todark. - 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) orFORCE_COLOR=0disables all theme colors and text styles.FORCE_COLOR=1or2caps output at 256 colors, andNO_COLORalways wins overFORCE_COLOR(see Terminal compatibility and Environment variables).
Initial theme
To override the theme for one interactive run without changingsettings.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-memoryThemeinstances passed through extensionsetTheme().
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\*.jsonon Windows). - Project (requires project trust):
.atomic/themes/*.json. - Packages:
themes/directories oratomic.themesentries inpackage.json(see Create and publish packages). - Settings: The
themesarray in global or projectsettings.json, accepting files, directories, and filter patterns (!glob,+path, and-pathwith~expansion; see Package filtering). - CLI:
--theme <path>(repeatable; accepts a.jsonfile or a directory) loads themes;--use-theme <name>activates one for that run.
- 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*.jsonfiles in that directory without applying dotfile or.gitignorefilters. - Passing
--no-themesdisables auto-discovered and configured-package themes. Built-in themes, themes shipped in-e/--extensionpackages, 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:-epackages win first, then project overrides global, both override configured packages, and explicit--themepaths 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
varsand 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.minimumContrastRatioto1so VS Code doesn’t shift your palette colors.