Token reference

What a theme actually needs to set, then every token and key in full.


A theme has three levels: base tokens, a palette, and theme keys. All three are optional. Three base tokens, background, foreground and primary, are the seeds every other base token is derived from.

Every theme key resolves in the same order:

  1. The value you set in keys.
  2. The palette entry the key derives from, if the key has one and you set it.
  3. The base token the key derives from, if the key has one.
  4. An Atlas default for the active appearance.

Each arrow below is the step failing. The first stop that has an answer is the one Atlas uses.

Loading diagram…

A key that derives its color is often transformed on the way: given a transparency, or mixed toward the background or the foreground. Those transforms apply only while deriving. A value you write in keys is used exactly as written.

Start here

There are 73 theme keys, and a theme does not need most of them.

The 15 built-in themes set 34 of the 73 between them, and 30 of those appear in every one. None of them sets a single terminal, status, search, or agent key, because the palette already gets those right.

Loading diagram…

So the realistic shape of a theme is:

  1. The three seeds, plus any base token whose derived value is not the one you want. The seeds on their own are a complete theme.
  2. The eight palette hues. Eight lines that fix syntax, terminal, diff, status, and search colors at once.
  3. About thirty-five theme keys, listed under the working set below. These are the surfaces where a theme's own judgment genuinely differs from its base tokens: the syntax roles, the editor's own chrome, two borders, two panel surfaces, and the diff tints.

Everything below that is the long tail. Reach into it when a derived color is not the one you wanted, not as a checklist.

Base tokens

All 42 below are optional, and so are the three font stacks. Write one in the variant or in the shared top-level [base] table; leave it out and Atlas derives it, as described below. The names are shadcn/ui's, unchanged.

Surfaces and text

TokenColors
background, foregroundthe app background and default text
card, card-foregroundelevated panels
popover, popover-foregroundmenus, popovers, and overlay panels
primary, primary-foregroundthe signature color: selection tints, the brand fill and its hover state
secondary, secondary-foregroundsecondary surfaces and their text
muted, muted-foregroundmuted surfaces, dimmed text, comments, line numbers, ANSI bright black
accent, accent-foregroundthe shadcn hover surface, and the matching-bracket fill
destructive, destructive-foregrounddestructive actions, and the fallback for the error color
borderseparators and control borders, and the source for the strong border
inputinput borders
ringthe keyboard focus ring, and the matching-bracket outline
chart-1 … chart-5chart series. Five series, so keep them tellable apart: two that differ only slightly render as one line
sidebar, sidebar-foregroundpanel and rail backgrounds, and their text
sidebar-primary, sidebar-primary-foregroundthe signature color inside a panel
sidebar-accent, sidebar-accent-foregrounda panel's hover surface
sidebar-borderlow-emphasis separators
sidebar-ringfocus inside a panel

Radius, type, and elevation

TokenNotes
radiusthe whole radius scale derives from it: controls at radius − 4, cards at radius − 2, popovers at radius, dialogs at radius + 4. Use a pixel value. The built-in themes all use 8px.
font-sansoptional: the interface font, for anyone whose interface font setting is on its default
font-monooptional: the editor, terminal, and code font, likewise behind the code font setting
font-serifoptional; Atlas has no serif surface
tracking-normalpart of the shadcn set; Atlas does not currently read it
spacingAtlas's density is built on the default 0.25rem, which every built-in theme uses
shadow-smthe raised elevation
shadow-xl, shadow-2xlshadow-2xl is the menu and popover elevation; a dialog stacks shadow-xl beneath it
shadow-2xs, shadow-xs, shadow-md, shadow-lgpart of the shadcn set; Atlas renders three elevations and does not use these four

Give a light variant its own shadow values. Dark shadows copied across read as heavy halos on a pale background.

How a base token you leave out is derived

Each base token has one rule. Mixes are done in OKLab, so a mix toward the foreground changes lightness evenly and keeps the hue.

TokenLeft out, it is
backgroundblack in a dark variant, white in a light one
foregroundwhichever of white and black reads better on background
primaryforeground, so a theme with no accent is monochrome
card, secondary, mutedbackground, 5% toward foreground
popoverbackground, 12% toward foreground
borderbackground, 16% toward foreground
sidebar-borderbackground, 8% toward foreground
inputborder
secondary-foregroundforeground, 28% toward background
muted-foregroundforeground, 32% toward background
card-foreground, popover-foreground, accent-foregroundforeground
primary-foreground, destructive-foregroundwhichever of foreground and background reads better on the fill
accentmuted
ring, chart-1primary
destructivepalette red, then an Atlas red
chart-2 … chart-5palette green, yellow, purple and cyan, then an Atlas default for each
the rest of the sidebar familythe matching token without the prefix: sidebar is background, sidebar-primary is primary, and so on
radius, tracking-normal, spacing, the shadowsAtlas's defaults: 8px, 0em, 0.25rem, and a shadow ramp for each appearance
font-sans, font-serif, font-monoAtlas's own fonts

A token you write is never changed. Built-in themes and imported themes pin their base tokens, so they do not move when a rule improves; a theme that leaves tokens out picks up any improvement with the next Atlas.

Palette

Eight optional hues. Each one is the first source for a group of theme keys, so setting the palette is the cheapest way to make syntax, terminal, diff, status, and search colors belong to your theme.

HueFeeds
rederror status, ANSI red and bright red, the diff removal family, syntax.tag, syntax.regexp
orangesyntax.number, syntax.constant
yellowwarning status, ANSI yellow and bright yellow, syntax.attribute, both search-match highlights
greensuccess status and the live-capture indicator, ANSI green and bright green, the diff addition family, syntax.string
cyanANSI cyan and bright cyan, syntax.type, syntax.operator, syntax.property
blueinformational status, ANSI blue and bright blue, syntax.function
purpleANSI magenta and bright magenta, syntax.keyword
pinksyntax.escape

Set as many or as few as you like. Each entry is looked up on its own.

The names are hues, and everything downstream trusts them. A green holding your theme's cyan puts that cyan into ANSI green, added lines, and every success message at once.

The working set

These are the keys to reach for first, and very nearly the set the built-in themes use: 34 of the 36 below appear in at least one built-in, the exceptions being the two diff text colors. The Falls back to column is what Atlas uses when you do not set the key.

Syntax

Fifteen roles. They color code everywhere it appears: the editor, diffs, chat, and rendered markdown. This is where a theme's personality lives, and it is the one family worth setting by hand even when the palette is already right.

KeyColorsFalls back to
syntax.commentcomments and prose quotesbase muted-foreground
syntax.keywordkeywords and control flowpalette purple
syntax.stringstringspalette green
syntax.numbernumberspalette orange
syntax.typetypes, classes, and namespacespalette cyan
syntax.functionfunctions and headingspalette blue, then base primary
syntax.variablevariablesbase foreground
syntax.operatoroperatorspalette cyan
syntax.tagmarkup tagspalette red
syntax.attributemarkup attributes, pragmas, and metadatapalette yellow
syntax.constantconstants, atoms, and booleanspalette orange
syntax.regexpregular expressionspalette red
syntax.escapeescape sequencespalette pink
syntax.definitiondefinitions and strong prosebase foreground
syntax.propertyproperties and object keyspalette cyan

Editor

Ten keys. Worth setting when the editor surface is meant to differ from the app around it, which is common: Rosé Pine's editor background is a shade off its app background, and that difference is the whole reason this family exists.

KeyColorsFalls back to
editor.backgroundthe code editor backgroundbase background
editor.foregrounddefault code textbase foreground
editor.caretthe caretbase foreground
editor.gutter.backgroundthe gutterbase background
editor.gutter.foregroundline numbersbase muted-foreground
editor.active_line.backgroundthe active linebase foreground at 4%
editor.active_line.gutter_foregroundthe active line numberbase foreground
editor.selection.backgroundselected codebase primary at 24%
editor.match_bracket.backgroundmatching bracket fillbase accent
editor.match_bracket.bordermatching bracket outlinebase ring

Borders and panel surfaces

KeyColorsFalls back to
border.subtlelow-emphasis separatorbase sidebar-border
border.stronghigh-emphasis border, including a focused control'sbase border
panel.backgroundpanel and rail backgroundbase sidebar
panel.input.backgroundan input inside a panelbase background

border.strong comes from border, not from ring. The focus ring is a brand color in most themes, and the strongest border is a gray one. A focused control's border is border.strong rather than a key of its own.

Diffs

KeyColorsFalls back to
diff.added.backgroundan added line or hunkpalette green at 13%
diff.added.emphasisthe changed words inside an added linepalette green at 34%
diff.added.textadded text, and the +N line countpalette green
diff.removed.backgrounda removed line or hunkpalette red at 13%
diff.removed.emphasisthe changed words inside a removed linepalette red at 34%
diff.removed.textremoved text, and the -N line countpalette red
diff.context.backgroundunchanged contextbase background

One fill serves both diff renderers, so a color you set here applies to the inline view and the side-by-side view alike.

The rest of the key set

The other 37 keys. Every one of them derives correctly from a good palette and a good set of base tokens, which is why no built-in theme sets any of them. Set one when a derived color is specifically not what you wanted.

Terminal

All nineteen. The bright ramp is the theme's hue pulled 15% toward the foreground, which reads as brighter in both appearances. Terminal authors who care about the exact ANSI ramp will want to set these; nobody else needs to.

KeyColorsFalls back to
terminal.backgroundthe terminal backgroundbase background
terminal.foregrounddefault terminal textbase foreground
terminal.cursorthe cursorbase foreground
terminal.ansi.blackANSI blackbase background, 12% toward the foreground
terminal.ansi.redANSI redpalette red
terminal.ansi.greenANSI greenpalette green
terminal.ansi.yellowANSI yellowpalette yellow
terminal.ansi.blueANSI bluepalette blue
terminal.ansi.magentaANSI magentapalette purple
terminal.ansi.cyanANSI cyanpalette cyan
terminal.ansi.whiteANSI whitebase foreground
terminal.ansi.bright_blackANSI bright blackbase muted-foreground
terminal.ansi.bright_redANSI bright redpalette red, toward the foreground
terminal.ansi.bright_greenANSI bright greenpalette green, toward the foreground
terminal.ansi.bright_yellowANSI bright yellowpalette yellow, toward the foreground
terminal.ansi.bright_blueANSI bright bluepalette blue, toward the foreground
terminal.ansi.bright_magentaANSI bright magentapalette purple, toward the foreground
terminal.ansi.bright_cyanANSI bright cyanpalette cyan, toward the foreground
terminal.ansi.bright_whiteANSI bright whitebase foreground, lightened

Status

Four foregrounds. The tinted fill behind each one is not a key. See what a theme cannot set.

KeyColorsFalls back to
status.success.foregroundsuccess text and icons, and the live-capture indicatorpalette green
status.warning.foregroundwarning text and iconspalette yellow
status.error.foregrounderror text and iconspalette red, then base destructive
status.info.foregroundinformational text and iconspalette blue

Interactive states and overlays

KeyColorsFalls back to
element.hoverhover overlay on an elementbase foreground at 4%
element.selectedselected overlaybase foreground at 6%
element.activepressed overlaybase foreground at 8%
element.highlightthe 1px top edge on a raised surfacebase foreground at 6%
primary.hoverhovered brand fillbase primary, 15% toward the foreground
primary.mutedmuted brand fillbase primary at 6%
selection.backgrounddocument text selectionbase primary at 18%

These derive from the theme's own foreground, so they invert correctly between a dark and a light variant. A hardcoded white wash would not.

Text, search, scrollbars, and the agent chip

KeyColorsFalls back to
text.disableddisabled and unavailable textbase muted-foreground, 20% toward the background
search.match.backgrounda search match in the documentpalette yellow at 22%
search.match.active_backgroundthe match the cursor is onpalette yellow at 50%
scrollbar.thumb.backgroundscrollbar thumbbase foreground at 16%
scrollbar.thumb.hoverhovered scrollbar thumbbase foreground at 26%
agent.chip.foregroundagent identity chip textbase foreground
agent.chip.backgroundagent identity chip fillbase foreground at 6%

There is one agent chip, not one per vendor. Atlas discovers the agents you have installed at runtime, so a theme cannot enumerate them, and no agent gets a color the others do not. This neutral pair is what a monochrome theme sets to flatten the chip entirely.

What a theme cannot set

Six colors reach the app as CSS custom properties but are not theme keys. Each is a pure function of a key that is, so writing one in a theme file is an unknown-key warning rather than an override.

VariableDerived fromHow
status.success.backgroundstatus.success.foregroundthat color at 12%
status.warning.backgroundstatus.warning.foregroundthat color at 12%
status.error.backgroundstatus.error.foregroundthat color at 12%
status.info.backgroundstatus.info.foregroundthat color at 12%
element.emphasisbase foregroundat 16%: the strongest neutral overlay, such as a chat mention addressed to you
terminal.selectionbase primaryat 30%

The reason is that none of them is a judgment call. A status badge's fill is its status foreground at 12%, and an author who wants a different green wants a different green, not two greens that have to be kept in step. Change the key and the derived color follows.

Where these end up

Atlas resolves the whole set on every theme change and writes it out as CSS custom properties. A base token becomes -- plus its name, so sidebar-border is --sidebar-border. A theme key becomes -- plus its name with dots and underscores turned into dashes, so terminal.ansi.bright_red is --terminal-ansi-bright-red. The six derived variables are spelled the same way, so status.success.background is --status-success-background.

Next

On this page