Design System

Token reference ​

The rules a token name follows, and what the system counts. For what these names mean, see Overview. For how to choose between them, see Usage.

The name grammar ​

TierShapeExample
Semantic, in colournamespace.role.namecolor.surface.page
Semantic, outside colournamespace.nametext.body
Semantic, category accentcolor.category.hue.rolecolor.category.rust.fill
Primitive, on a ramppalette.family.appearance.steppalette.neutral.light.1
Primitive, off the rampspalette.family.appearance.namepalette.metal.light.gold
Primitive, categorypalette.category.appearance.hue.rolepalette.category.light.rust.fill

Outside colour a semantic name usually has two segments. spacing and radius have one, because each of those namespaces publishes a single value, and container.dialog.sm adds a third for the size.

The CSS variable is the token name with dots turned into dashes, so color.surface.page is --color-surface-page.

Counts ​

Count
Semantic tokens241
Primitive tokens228
Total469
Vary by appearance179
Same in both themes290

Cleared namespaces ​

These seven are emptied before the tokens are declared, so the token package leaves no stock value in them. Caido aliases the common names back onto its own values so the shipped component preset keeps working, and design/no-preset-scale reports twelve of those names as an error in first-party markup. A name outside those twelve produces no warning either way: rounded-xl and leading-normal still resolve through an alias, while tracking-wide and shadow-md match no utility.

NamespaceStock names it clearsReplaced by
--text-*text-xs, text-sm, text-base, text-lg, text-xltype roles
--font-*stock family namesfont-sans, font-mono
--font-weight-*font-normal, font-semiboldfont-regular, font-medium, font-bold
--leading-*leading-tight, leading-loosethe line height on each type role
--tracking-*tracking-wide, tracking-tightnothing. No letter spacing token is published
--radius-*rounded-sm, rounded-md, rounded-lga single rounded, see Space
--shadow-*shadow-sm, shadow-md, shadow-lgnothing. Layering is z-index, see Depth

The colour namespace is not cleared, so bg-red-500 still renders. It is still wrong, because a fixed colour cannot follow the theme.

The system publishes one radius token, so the corner to write is the bare rounded. The theme block still gives rounded-xl, rounded-2xl, rounded-3xl and rounded-4xl fixed values of 12px, 16px, 24px and 32px, none of which the rule reports. --shadow-* is the one left with no replacement, so the depth names from shadow-2xs to shadow-2xl match no utility. rounded-full, rounded-none and shadow-none carry static values rather than token values, and keep working.

Contrast rules ​

169 pairings are listed in the token source, and a contrast script measures each in both appearances. It is run on its own rather than as part of the build. The comparison reads the unrounded ratio, so 4.48 fails.
UsageFloorPairingsApplies to
text4.5142Anything a person reads
identifier3.022Colour that is the only thing identifying a control
focus3.05The focus ring against what sits behind it
7 pairings are recorded as accepted exceptions. A pairing that is not listed is not checked.

Appearance ​

Root elementcolor-schemeResult
no attributelight darkfollows the operating system
data-appearance="light"lightalways light
data-appearance="dark"darkalways dark

Nothing below the root sets color-scheme. The code editor is the one exception: it picks light or dark from its own setting rather than from a token, so it reads the resolved mode off the root.

Every token ​

All tokens is the searchable list, with the value each name resolves to in both themes.