v1.0.0

Token reference

Updated 01 Dec 2026Edit this page

Every semantic token a component may consume, and what it is for.

This page is a child of Theming — it sits under it in the sidebar because of where its file lives, not because of anything in its frontmatter:

text
src/content/docs/theming.mdx                  →  /theming/
src/content/docs/theming/token-reference.mdx  →  /theming/token-reference/

A page nests when a page exists at its parent path. It inherits that parent’s group, so the two levels can’t disagree — and moving the file is the only thing that changes the nesting.

Use it for the long tail

A reference table, a troubleshooting appendix, a per-platform variant — anything a reader needs occasionally but shouldn't have to scroll past. Two levels is the practical limit for a sidebar; past that, a reader can't see where they are.

Text

--color-textcolor

Body copy. Prose is set on this, not on --color-text-strong.

--color-text-strongcolor

Headings, and anything that has to win against body copy.

--color-text-mutedcolor

Supporting copy: ledes, table cells, callout bodies.

--color-text-faintcolor

Metadata that should recede — dates, captions, group labels.

--color-text-inversecolor

Text on an inverse band. Flips with the theme.

--color-linkcolor

Links. Points at --color-accent by default.

Surfaces

--color-bgcolor

The page.

--color-bg-surfacecolor

One step off the page: panels, table headers, the tab strip.

--color-bg-mutedcolor

Two steps off: the active sidebar item, inline code.

--color-bg-inversecolor

The opposite end of the ramp. Dark on a light page, light on a dark one.

--color-bordercolor

Hairlines and panel edges.

--color-border-strongcolor

A border that has to be noticed — a hovered card, a focused field.

The accent

--color-accentcolor

The interactive color: links, active nav, focus rings, annotation markers.

--color-accent-hovercolor

Its hover state.

--color-accent-oncolor

Text sitting on the accent. Check the contrast if you change either.

--color-accent-surfacecolor

A tint of the accent: note callouts, the announcement bar, a soft band.

--color-accent-bordercolor

A border on that tint.

Code

Code blocks stay dark in both themes, so these four don’t flip.

--color-code-bgcolor

The code panel.

--color-code-textcolor

Code that carries no syntax color of its own.

--color-code-mutedcolor

Comments, and the prompt in a command line.

--color-code-bordercolor

The panel's edge, and the rule above a block's notes.

--color-code-highlightcolor

A highlighted line's background. The accent draws its left bar.

Everything else

Spacing, radius, type, line height, borders, shadows, z-layers and motion are all src/styles/variables/*. Print npm run lint:css-vars -- --list for the full set — it reads them out of the files, so it can’t go stale.

An unresolved token fails silently

var(--color-text) is invalid at computed-value time, so the declaration just inherits — no error in review, the build, or usually the page. npm run check fails on it, which is the only reason you find out.