Importing a theme
Bring a shadcn, Zed, or VS Code theme into Atlas, and export one back out.
Atlas converts themes from three other formats. Open Settings with ⌘,, choose Appearance, and click Import theme beside the theme grid. The importer opens in a dialog over the page.
An import is a one-time conversion. What you get is an ordinary Atlas theme file in ~/.config/atlas/themes/, which you then own and edit like any other. Nothing links back to the source, and Atlas never reads it again.
How much each format carries
| Source | Verdict in the panel | Why |
|---|---|---|
| shadcn, tweakcn | Nothing lost | Atlas's base tokens are shadcn's tokens, so the chrome crosses verbatim |
| Zed | Near-lossless | Atlas's theme keys were modeled on Zed's roles |
| VS Code | Lossy | a workbench theme and an app theme are different things |
The format is detected from the content, so you paste and press Convert without saying which one it is.
Base tokens the source does not supply are filled in and pinned. Atlas derives them with the same rules any theme that leaves a token out goes through (see the token reference), then writes them into the file. The theme you previewed is the theme you keep, even if a rule changes in a later Atlas.
Give Atlas the theme
Four sources, as tabs at the top of the panel.
Open VSX. Search open-vsx.org for a VS Code color theme and press Convert on a result. Only extensions that actually carry a color theme are listed. Atlas downloads the extension once, previews every theme inside it (GitHub's has ten, Catppuccin's four), each under its own name with the publisher and licence Open VSX lists, and keeps nothing but the ones you add. An include between the extension's files is followed. A TextMate (.tmTheme) theme inside an extension is skipped, and the preview says which.
Paste. A shadcn registry item, a globals.css, a Zed theme family, or a VS Code color theme, straight into the box.
URL. Fetched once over http or https, with a ten-second limit and a 4 MB cap. The file is converted and then forgotten.
File. Opens a picker for a .json, .jsonc, or .css file. This is the only source that can follow a VS Code include, because an include names a sibling file on disk.
Nothing is written until you press Add theme, so converting is free.
shadcn and tweakcn
Two shapes are accepted, and they use the same mapping.
A registry item, which is what tweakcn exports and what a URL on a shadcn site serves:
{
"type": "registry:style",
"cssVars": {
"theme": { "radius": "8px" },
"light": { "background": "oklch(0.98 0.01 90)" },
"dark": { "background": "oklch(0.18 0.02 280)" }
}
}Or a pasted globals.css, with :root and .dark blocks. @theme inline and @layer base { :root { … } } are read too.
What crosses. Every shadcn token name lands on the Atlas base token of the same name, per variant, with cssVars.theme or @theme sitting behind both. Values keep the notation you wrote them in, so an oklch theme stays oklch. The tweakcn extras land where Atlas has a home for them: font-sans, font-serif, font-mono, radius, tracking-normal (also read from --letter-spacing), and the composed shadow-2xs through shadow-2xl ramp. A font both variants share is written once, in the theme's top-level [base] table.
tweakcn themes usually name Google Fonts, such as Montserrat, that are not installed on your computer. Atlas does not download them. The font picker in Settings → Appearance says From theme: Montserrat with a warning until you install it, and Atlas's default font shows meanwhile. Your own font settings always win over a theme's.
What is dropped. The shadow ingredients (--shadow-color, -opacity, -blur, -spread, -offset-x, -offset-y), because Atlas takes the composed ramp rather than the recipe. Also a registry item's raw css block, and any CSS rule that is not :root, .dark, or @theme. An @theme inline entry of the form --color-x: var(--x) is a re-export rather than a value, and is skipped silently.
What is kept but ignored. spacing. Spacing and the type scale belong to the app, so the value stays in your file rather than being lost on a round trip, and the report warns that nothing honours it.
A shadcn token set describes application chrome and stops there. It has no vocabulary for an editor, a terminal, syntax, or a diff, so every one of those keys falls back to Atlas's own default for the appearance (for syntax, Pierre's colors). Adding a palette is the step that fixes all of them at once.
Which variant is which. cssVars.light and cssVars.dark are trusted as written. In pasted CSS, :root is the light variant when there is a .dark block to be the other half. A dark-only paste is judged by the lightness of its background and filed as dark, and the report says so.
Zed
A Zed theme file is a family, and each member becomes its own Atlas theme. Rosé Pine, Moon, and Dawn arrive as three siblings rather than as variants of one design, which is how the built-in themes already treat them.
What crosses. 44 style keys map onto Atlas theme keys, and all 16 terminal.ansi.* colors transfer exactly. players[0].cursor becomes the editor and terminal caret, and players[0].selection fills the selection colors. Zed's syntax map collapses onto Atlas's 15 syntax roles, which is most of what near-lossless means for a code theme.
Six Atlas keys have no Zed source at all: the raised-surface highlight, the two brand fill states, the matching-bracket outline, and the agent chip pair. All six derive.
Where the names differ, it is because Zed's roles do not map one-to-one. Zed's border and border.variant become the shadcn border token and border.subtle, since a key in Atlas may not be both a value and a prefix. Zed's four status backgrounds have nowhere to go, because Atlas works the tinted fill out from the status foreground rather than asking for it.
Font styles do not cross. An Atlas theme key carries a color and nothing else, so a Zed scope with font_style is imported with its color and no italics. The report counts those under font styles, with the scopes named, rather than writing a field the loader would reject.
What is derived. Thirteen of the 42 base tokens. Zed has no shadcn layer, but 29 of the 42 still come from a Zed style role, so the ones Atlas genuinely invents are the three foregrounds with no source, radius, tracking-normal, spacing, and the seven shadows.
If the chrome looks off after an import, check the mapped ones first: primary (from text.accent), accent (from element.hover, since shadcn's accent is a hover surface), and card (from elevated_surface.background).
What is dropped, by category: icon roles, the players[1..] collaboration colors, editor furniture Atlas does not draw (wrap guides, invisibles, subheaders, the read and write highlight pair), app chrome that follows the panel tokens, the status backgrounds Atlas derives, the version-control states Atlas has no color for (conflict, renamed, ignored, hidden, unreachable), hint and predictive, the ghost-element overlay ladder, Zed's dim ANSI ramp, and whichever syntax scopes are finer than Atlas's 15 roles.
VS Code
A converted VS Code theme is a starting point, not a copy. Expect to finish it by hand.
Only seven of Atlas's 73 theme keys have no workbench or TextMate equivalent at all. What decides the result is how much the source theme actually states: a theme that says little about tokenColors leaves most of the syntax family derived, and every workbench key Atlas has no home for is counted and categorized. The panel shows you exactly which part before anything is written.
Includes. include is resolved relative to the file on disk, up to eight hops, with cycles caught. The included file is the base and the including file overrides it, and tokenColors are concatenated so that the includer's rules come last. A pasted theme cannot resolve an include, and the report names the file it could not read. The JSON-with-comments dialect that VS Code themes are actually written in is read as written.
Appearance comes from type. With no type, it is judged from the lightness of editor.background, and the report says that is what happened.
Workbench keys
Mapped where Atlas has an equivalent: editor.background, .foreground, .lineHighlightBackground, .selectionBackground, .findMatchBackground and .findMatchHighlightBackground, editorCursor.foreground, editorGutter.background, editorLineNumber.*, editorBracketMatch.*, scrollbarSlider.*, sideBar.background, input.background, focusBorder, list.hoverBackground and .activeSelectionBackground, disabledForeground, editorError/Warning/Info.foreground, gitDecoration.added and deletedResourceForeground, diffEditor.inserted and removedText/LineBackground, and all 16 terminal.ansi* plus terminal.background and .foreground.
The base tokens are taken from editor.background, foreground, editorWidget.background, dropdown.background, button.background and foreground, editorGroupHeader.tabsBackground, descriptionForeground, list.hoverBackground, list.activeSelectionForeground, editorError.foreground, editorGroup.border, input.border, focusBorder, textLink.foreground, and sideBar.*.
Everything else is counted by category, each with the reason it had nowhere to go: editor furniture (minimap, rulers, indent guides, inlay hints, code lens, ghost text, the fold placeholder), widgets (suggest, hover, peek, notifications, quick input, menus, breadcrumbs, debug, testing), app chrome (status bar, title bar, tabs, badges, panel and sidebar headers, welcome page, settings, keybinding labels), version control (merge editor, the rest of gitDecoration, the source-control panel), icon roles, and terminal decorations.
Why TextMate scopes cannot map perfectly
tokenColors is a list of rules carrying grammar selectors, not roles. A selector matches a scope when it is a dotted prefix of it, so string matches string.quoted.double.ts. VS Code then resolves a token by taking the longest matching selector, with a later rule winning a tie. A descendant selector such as meta.tag entity.name is a context rule, so only its rightmost element is considered.
That vocabulary describes a grammar, not a role. A theme is free to color string.quoted.double.ts differently from string.quoted.single.js, and many do. Atlas has 15 syntax roles and no grammar inside the theme, so there is no rule that turns one into the other exactly.
The importer inverts VS Code's resolution instead. For each Atlas key it holds representative scopes and asks which rule VS Code would apply to each, first match winning:
| Atlas key | Scopes, in order |
|---|---|
syntax.comment | comment, comment.line, punctuation.definition.comment |
syntax.keyword | keyword.control, keyword, storage.type, storage.modifier |
syntax.operator | keyword.operator, keyword.operator.arithmetic |
syntax.string | string.quoted.double, string |
syntax.escape | constant.character.escape |
syntax.regexp | string.regexp |
syntax.number | constant.numeric |
syntax.constant | constant.other, constant.language, constant, variable.language, support.constant |
syntax.type | entity.name.type, entity.name.class, support.type, support.class, storage.type.class |
syntax.function | entity.name.function, support.function, meta.function-call |
syntax.definition | entity.name.function.definition, entity.name, entity.name.namespace |
syntax.variable | variable.other.readwrite, variable |
syntax.property | variable.other.property, support.type.property-name, meta.object-literal.key |
syntax.tag | entity.name.tag |
syntax.attribute | entity.other.attribute-name, meta.preprocessor, keyword.control.directive |
Use that table when a converted theme looks wrong in one place. A syntax.type that came out gray usually means the source theme said nothing about entity.name.type and everything about a grammar-specific scope below it.
fontStyle: italic on a matched rule does not survive: an Atlas theme key is a color, so the scope is imported with its color and no italics, and the report counts it under font styles. markup.* and grammar-specific scopes have no Atlas role and are counted as dropped.
Semantic tokens
semanticTokenColors takes precedence over tokenColors, because a theme that writes one is stating its intent more directly than a grammar selector can.
Only bare token types are read: variable and parameter become syntax.variable; property becomes syntax.property; function and method become syntax.function; class, interface, struct, enum, type, typeParameter, and namespace become syntax.type; macro becomes syntax.attribute; enumMember becomes syntax.constant; and keyword, comment, string, number, operator, and regexp map onto their own keys.
A selector carrying modifiers, such as variable.readonly.defaultLibrary, is a conditional rule and cannot be applied unconditionally, so it is reported rather than used.
Read the report
Every conversion produces a report, and the report is the point of the panel. Three counts sit at the top of each converted theme:
| Count | Means |
|---|---|
| mapped | the source said this, and Atlas kept it |
| derived | the source did not say it, so Atlas worked it out |
| ignored | the source said it and Atlas has nowhere to put it |
Beside them is the fidelity verdict, the variants the theme has, and a warning badge if committing would replace a theme you already imported or shadow a built-in.
Under the counts:
- Summary lines say what the format cannot carry. This is the part to read.
- Warnings are things that are wrong rather than merely absent: a
spacingvalue Atlas will not honour, or anincludethat could not be resolved. - What was dropped expands into one row per category, with a count and the reason. "22 workbench chrome" with "widgets and surfaces Atlas does not have" is an honest summary; a bare "ignored: 87" is not.
- Mapped keys and Derived keys expand into the full lists, each row a swatch, the fully qualified target such as
dark.base.background, and where the value came from. A derived base token names the rule that produced it, such as "background, mixed 0.16 toward foreground".
A high derived count is normal and not a problem. For a Zed theme it is about 21 per variant: the 13 base tokens with no Zed source, plus the eight palette hues, which Atlas reads off the theme's own terminal, syntax and status colors. What to look at is the derived list itself: those are the colors Atlas guessed, and they are the ones worth overriding by hand afterwards.
Where the imported theme lands
Each converted theme gets a Name and an Id field. Edit them, then press Add theme.
Atlas writes ~/.config/atlas/themes/<id>.toml and applies it immediately. The id is slugged first, so it always names a file inside that folder. The theme then appears in the grid alongside the built-in ones, as both your light and dark theme.
From that point it is an ordinary theme file. See authoring a theme for editing it, and the token reference for what each key you might want to add controls.
An id that matches a built-in theme replaces that built-in in the picker. The panel marks that case Shadows a built-in before you commit. Change the id unless overriding it is what you want.
Export to shadcn
The same panel has an Export tab. Pick any theme, built-in or your own, and Atlas produces a shadcn registry:style item ready to copy:
{
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "rose-pine",
"type": "registry:style",
"title": "Rosé Pine",
"author": "Rosé Pine",
"cssVars": {
"theme": { "radius": "8px", "spacing": "0.25rem" },
"dark": { "background": "#08070a", "foreground": "#e0def4" }
}
}The base tokens cross verbatim, one block per appearance, because shadcn's names are Atlas's names. The export always carries the full set: a token the theme leaves out is derived and written, so the result works anywhere a shadcn theme does. radius, the font stacks, tracking-normal, and spacing are appearance-independent, so they are hoisted into cssVars.theme and written once. A theme whose two variants disagree about the radius loses that disagreement, since shadcn cannot express it.
Everything above the base tokens is dropped: the palette, and every theme key covering the editor, terminal, syntax, diffs, and the agent chip. shadcn has no vocabulary for any of them. The report gives the count and breaks it down by family, and notes when only one variant exists, since shadcn consumers usually expect both.
Exporting is for taking your colors to a shadcn project. To move a theme between two Atlas installs, copy the .toml instead. That loses nothing.
Next
- Authoring a theme: finish what the conversion started
- Token reference: every key, and what it falls back to
- Compatibility: convert a shadcn theme by hand