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:
- The value you set in
keys. - The palette entry the key derives from, if the key has one and you set it.
- The base token the key derives from, if the key has one.
- 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.
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.
So the realistic shape of a theme is:
- 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.
- The eight palette hues. Eight lines that fix syntax, terminal, diff, status, and search colors at once.
- 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
| Token | Colors |
|---|---|
background, foreground | the app background and default text |
card, card-foreground | elevated panels |
popover, popover-foreground | menus, popovers, and overlay panels |
primary, primary-foreground | the signature color: selection tints, the brand fill and its hover state |
secondary, secondary-foreground | secondary surfaces and their text |
muted, muted-foreground | muted surfaces, dimmed text, comments, line numbers, ANSI bright black |
accent, accent-foreground | the shadcn hover surface, and the matching-bracket fill |
destructive, destructive-foreground | destructive actions, and the fallback for the error color |
border | separators and control borders, and the source for the strong border |
input | input borders |
ring | the keyboard focus ring, and the matching-bracket outline |
chart-1 … chart-5 | chart series. Five series, so keep them tellable apart: two that differ only slightly render as one line |
sidebar, sidebar-foreground | panel and rail backgrounds, and their text |
sidebar-primary, sidebar-primary-foreground | the signature color inside a panel |
sidebar-accent, sidebar-accent-foreground | a panel's hover surface |
sidebar-border | low-emphasis separators |
sidebar-ring | focus inside a panel |
Radius, type, and elevation
| Token | Notes |
|---|---|
radius | the 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-sans | optional: the interface font, for anyone whose interface font setting is on its default |
font-mono | optional: the editor, terminal, and code font, likewise behind the code font setting |
font-serif | optional; Atlas has no serif surface |
tracking-normal | part of the shadcn set; Atlas does not currently read it |
spacing | Atlas's density is built on the default 0.25rem, which every built-in theme uses |
shadow-sm | the raised elevation |
shadow-xl, shadow-2xl | shadow-2xl is the menu and popover elevation; a dialog stacks shadow-xl beneath it |
shadow-2xs, shadow-xs, shadow-md, shadow-lg | part 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.
| Token | Left out, it is |
|---|---|
background | black in a dark variant, white in a light one |
foreground | whichever of white and black reads better on background |
primary | foreground, so a theme with no accent is monochrome |
card, secondary, muted | background, 5% toward foreground |
popover | background, 12% toward foreground |
border | background, 16% toward foreground |
sidebar-border | background, 8% toward foreground |
input | border |
secondary-foreground | foreground, 28% toward background |
muted-foreground | foreground, 32% toward background |
card-foreground, popover-foreground, accent-foreground | foreground |
primary-foreground, destructive-foreground | whichever of foreground and background reads better on the fill |
accent | muted |
ring, chart-1 | primary |
destructive | palette red, then an Atlas red |
chart-2 … chart-5 | palette green, yellow, purple and cyan, then an Atlas default for each |
| the rest of the sidebar family | the matching token without the prefix: sidebar is background, sidebar-primary is primary, and so on |
radius, tracking-normal, spacing, the shadows | Atlas's defaults: 8px, 0em, 0.25rem, and a shadow ramp for each appearance |
font-sans, font-serif, font-mono | Atlas'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.
| Hue | Feeds |
|---|---|
red | error status, ANSI red and bright red, the diff removal family, syntax.tag, syntax.regexp |
orange | syntax.number, syntax.constant |
yellow | warning status, ANSI yellow and bright yellow, syntax.attribute, both search-match highlights |
green | success status and the live-capture indicator, ANSI green and bright green, the diff addition family, syntax.string |
cyan | ANSI cyan and bright cyan, syntax.type, syntax.operator, syntax.property |
blue | informational status, ANSI blue and bright blue, syntax.function |
purple | ANSI magenta and bright magenta, syntax.keyword |
pink | syntax.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.
| Key | Colors | Falls back to |
|---|---|---|
syntax.comment | comments and prose quotes | base muted-foreground |
syntax.keyword | keywords and control flow | palette purple |
syntax.string | strings | palette green |
syntax.number | numbers | palette orange |
syntax.type | types, classes, and namespaces | palette cyan |
syntax.function | functions and headings | palette blue, then base primary |
syntax.variable | variables | base foreground |
syntax.operator | operators | palette cyan |
syntax.tag | markup tags | palette red |
syntax.attribute | markup attributes, pragmas, and metadata | palette yellow |
syntax.constant | constants, atoms, and booleans | palette orange |
syntax.regexp | regular expressions | palette red |
syntax.escape | escape sequences | palette pink |
syntax.definition | definitions and strong prose | base foreground |
syntax.property | properties and object keys | palette 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.
| Key | Colors | Falls back to |
|---|---|---|
editor.background | the code editor background | base background |
editor.foreground | default code text | base foreground |
editor.caret | the caret | base foreground |
editor.gutter.background | the gutter | base background |
editor.gutter.foreground | line numbers | base muted-foreground |
editor.active_line.background | the active line | base foreground at 4% |
editor.active_line.gutter_foreground | the active line number | base foreground |
editor.selection.background | selected code | base primary at 24% |
editor.match_bracket.background | matching bracket fill | base accent |
editor.match_bracket.border | matching bracket outline | base ring |
Borders and panel surfaces
| Key | Colors | Falls back to |
|---|---|---|
border.subtle | low-emphasis separator | base sidebar-border |
border.strong | high-emphasis border, including a focused control's | base border |
panel.background | panel and rail background | base sidebar |
panel.input.background | an input inside a panel | base 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
| Key | Colors | Falls back to |
|---|---|---|
diff.added.background | an added line or hunk | palette green at 13% |
diff.added.emphasis | the changed words inside an added line | palette green at 34% |
diff.added.text | added text, and the +N line count | palette green |
diff.removed.background | a removed line or hunk | palette red at 13% |
diff.removed.emphasis | the changed words inside a removed line | palette red at 34% |
diff.removed.text | removed text, and the -N line count | palette red |
diff.context.background | unchanged context | base 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.
| Key | Colors | Falls back to |
|---|---|---|
terminal.background | the terminal background | base background |
terminal.foreground | default terminal text | base foreground |
terminal.cursor | the cursor | base foreground |
terminal.ansi.black | ANSI black | base background, 12% toward the foreground |
terminal.ansi.red | ANSI red | palette red |
terminal.ansi.green | ANSI green | palette green |
terminal.ansi.yellow | ANSI yellow | palette yellow |
terminal.ansi.blue | ANSI blue | palette blue |
terminal.ansi.magenta | ANSI magenta | palette purple |
terminal.ansi.cyan | ANSI cyan | palette cyan |
terminal.ansi.white | ANSI white | base foreground |
terminal.ansi.bright_black | ANSI bright black | base muted-foreground |
terminal.ansi.bright_red | ANSI bright red | palette red, toward the foreground |
terminal.ansi.bright_green | ANSI bright green | palette green, toward the foreground |
terminal.ansi.bright_yellow | ANSI bright yellow | palette yellow, toward the foreground |
terminal.ansi.bright_blue | ANSI bright blue | palette blue, toward the foreground |
terminal.ansi.bright_magenta | ANSI bright magenta | palette purple, toward the foreground |
terminal.ansi.bright_cyan | ANSI bright cyan | palette cyan, toward the foreground |
terminal.ansi.bright_white | ANSI bright white | base foreground, lightened |
Status
Four foregrounds. The tinted fill behind each one is not a key. See what a theme cannot set.
| Key | Colors | Falls back to |
|---|---|---|
status.success.foreground | success text and icons, and the live-capture indicator | palette green |
status.warning.foreground | warning text and icons | palette yellow |
status.error.foreground | error text and icons | palette red, then base destructive |
status.info.foreground | informational text and icons | palette blue |
Interactive states and overlays
| Key | Colors | Falls back to |
|---|---|---|
element.hover | hover overlay on an element | base foreground at 4% |
element.selected | selected overlay | base foreground at 6% |
element.active | pressed overlay | base foreground at 8% |
element.highlight | the 1px top edge on a raised surface | base foreground at 6% |
primary.hover | hovered brand fill | base primary, 15% toward the foreground |
primary.muted | muted brand fill | base primary at 6% |
selection.background | document text selection | base 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
| Key | Colors | Falls back to |
|---|---|---|
text.disabled | disabled and unavailable text | base muted-foreground, 20% toward the background |
search.match.background | a search match in the document | palette yellow at 22% |
search.match.active_background | the match the cursor is on | palette yellow at 50% |
scrollbar.thumb.background | scrollbar thumb | base foreground at 16% |
scrollbar.thumb.hover | hovered scrollbar thumb | base foreground at 26% |
agent.chip.foreground | agent identity chip text | base foreground |
agent.chip.background | agent identity chip fill | base 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.
| Variable | Derived from | How |
|---|---|---|
status.success.background | status.success.foreground | that color at 12% |
status.warning.background | status.warning.foreground | that color at 12% |
status.error.background | status.error.foreground | that color at 12% |
status.info.background | status.info.foreground | that color at 12% |
element.emphasis | base foreground | at 16%: the strongest neutral overlay, such as a chat mention addressed to you |
terminal.selection | base primary | at 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
- Authoring a theme: the practical guide
- Importing a theme: convert a shadcn, Zed, or VS Code theme
- Compatibility: start from a shadcn or tweakcn theme