Skip to content

Design tokens

This is every token in the default design system a new project starts with, by name and value. Edit any of them on the matching page of the Design system editor or in Styles/default.ds. The design system overview explains how the kinds fit together.

A still of the live example. Open this page on a desktop browser with WebGPU to try it.
One scene under one design system, in its opening brand, theme and density
Brand
Theme
Density
Live on a desktop browser with WebGPU. One scene, one design system: switch brand, theme or density and every value the system drives moves at once.

Which colors ship by default?

Four brand colors, one neutral, and 21 utility palettes. Each is a boldness(color(...)) seed, so each gives you raw stops and mode-aware roles.

GroupTokensSeed
Brandprimary, secondary, tertiary, quaternary#0080FF, #FF3377, #FF9900, #FFDD00
Neutralneutraloklch(55.6%, 0, 0)
Utility palettesred, orange, amber, yellow, lime, green, emerald, teal, cyan, sky, blue, indigo, violet, purple, fuchsia, pink, rose, slate, gray, zinc, stoneTailwind’s OKLCH values. On the hide: list, for accents and data viz
A seed, and a palette of your own
red:       boldness(color(oklch(63.7%, 0.237, 25.331)))
acme_blue: boldness(color(oklch(60%, 0.21, 230)))

How does a ramp map to roles?

Each color has 11 raw stops and 9 roles. Raw stops stay fixed across modes. Roles mirror in dark mode, except mid.

Raw stopLadder lightnessRoleRole in dark mode
.5097%hint.900
.10094%faint.800
.20087%subtle.700
.30080%soft.600
.40071%No roleNo role
.500 (the seed)The seed’s ownmid.500
.60050%firm.300
.70042%bold.200
.80036%strong.100
.90029%intense.50
.95023%No roleNo role

Other stops rescale around the seed’s lightness.

The light half runs a little lighter on near-neutral seeds. accessibility.high-contrast pushes roles one step away from the middle. A seed with its own dark: color reads a dark ramp in dark mode, raw stops included.

Which color roles should I bind?

The color.* roles. Most of a screen lives in the neutrals, and the brand roles are the highlights.

RolePoints atUse
color.surfaceneutral.hintPage background
color.surface.containerneutral.faintCards and containers
color.surface.container.highneutral.subtleElevated surfaces
color.surface.hoverneutral.faintItem under the cursor
color.surface.pressedneutral.subtleItem at the moment of click
color.surface.selectedprimary.hintCurrent row in a nav, menu or list
color.on-surfaceneutral.strongContent on surfaces
color.on-surface.selectedneutral.boldContent on a selected surface
color.outlineneutral.softBorders
color.outline.variantneutral.subtleSubtle borders
color.text.primaryneutral.boldBody text
color.text.secondaryneutral.firmSecondary text
color.text.disabledneutral.softDisabled labels and icons
color.text.displayprimary.firmHero and title color
color.text.display.altsecondary.firmHero callout
color.shadowneutral.950Shadow color. A raw stop, so it never flips
color.glowneutral.50Glow color. A raw stop, so it never flips

Each brand and status color also has a trio: the color, the content on it, and a quiet container.

Namecolor.NAMEcolor.on-NAMEcolor.NAME.container
primaryprimary.midneutral.50primary.hint
secondarysecondary.midneutral.50secondary.hint
tertiarytertiary.midneutral.50tertiary.hint
quaternaryquaternary.midneutral.900quaternary.hint
successgreen.midneutral.50green.hint
errorred.midneutral.50red.hint
warningorange.midneutral.900orange.hint
infoblue.midneutral.50blue.hint

What are the spacing, radius and font size values?

All three are t-shirt scales, and a new list rescales every step. Values are plain numbers with no unit.

Stopspacingradiusfont.size
none00-
xs4212
sm8414
md12616
lg16820
xl241224
2xl321632
3xl482036
4xl642440
5xl963248
6xl1284064
7xl-4880
8xl-6496
9xl-96128
full-9999-
As declared
spacing:   tshirt(number([4, 8, 12, 16, 24, 32, 48, 64, 96, 128]),
                  min: { none: 0 })
radius:    tshirt(number([2, 4, 6, 8, 12, 16, 20, 24, 32, 40, 48, 64, 96]),
                  min: { none: 0 }, max: { full: 9999 },
                  transforms: none)
font.size: tshirt(number([12, 14, 16, 20, 24, 32, 36, 40, 48, 64, 80, 96, 128]),
                  transforms: { accessibility.large-text: shift(+1) })
Scaledensity.compactaccessibility.large-text
spacingOne step smallerOne step larger
radiusSameSame
font.sizeSameOne step larger

Negative spacing pulls auto layout children together, for avatar stacks or a badge biting into a card corner.

TokenValue
spacing.overlap.xs-2
spacing.overlap.sm-4
spacing.overlap.md-8
spacing.overlap.lg-16
spacing.overlap.xl-24
spacing.overlap.2xl-32

What are the stroke, visibility and weight values?

All three use the boldness vocabulary. accessibility.high-contrast moves each one step up the scale.

Stopstroke.widthvisibilityfont.weight
none0--
invisible-0-
hint0.50.05100 Thin
faint0.750.10200 Extra Light
subtle10.20300 Light
soft1.250.40400 Regular
mid1.50.50500 Medium
firm20.60600 Semibold
bold2.50.80700 Bold
strong30.90800 Extra Bold
intense40.95900 Black
opaque-1-
thick8--
thicker16--
thickest48--

What are the line height and letter spacing values?

Both use the looseness vocabulary, and both are multiples of the font size: 0.05 letter spacing is 5% tracking. accessibility.large-text moves each one step looser.

Stopfont.lineHeightfont.letterSpacing
none1.0-0.05
tight1.25-0.025
snug1.375-0.0125
normal1.50
relaxed1.6250.025
loose2.00.1

Which font families ship?

Manrope for UI and body, Noto Serif for editorial moments, JetBrains Mono for code.

Font families
font.family:        Manrope
font.family.sans:   font.family
font.family.serif:  "Noto Serif"
font.family.mono:   "JetBrains Mono"

font.family.sans is an alias of the default, so editing font.family retints both. Add another with one line (font.family.display: "Fraunces"). To bind one, open the chevron in the font field of the Typography section: it lists the family tokens. Clicking the field itself opens the full font list, and a family picked there is a plain value.

Which text styles ship?

Text styles are typography composites. Every style below is a fontSize, fontWeight and lineHeight, plus a family where noted.

TokenSizeWeightLine height
typography.display.lgfont.size.6xl (64)bold1.1
typography.display.md52bold1.1
typography.display.sm44bold1.15
typography.h1font.size.3xl (36)bold1.2
typography.h230bold1.25
typography.h3font.size.xl (24)firm1.3
typography.h4font.size.lg (20)firm1.35
typography.body.lg18softnormal
typography.body.mdfont.size.md (16)softnormal
typography.body.smfont.size.sm (14)softnormal
typography.buttonfont.size.sm (14)firmtight
typography.inputfont.size.md (16)soft1.4
typography.labelfont.size.sm (14)mid1.4
typography.captionfont.size.xs (12)soft1.4
typography.code (font.family.mono)font.size.sm (14)softnormal
typography.editorial.lg (font.family.serif)font.size.6xl (64)bold1.1
typography.editorial.md (font.family.serif)52bold1.1
typography.editorial.sm (font.family.serif)44bold1.15

How do I apply a text style?

Select text and pick the style. On text with a style, the Typography section shows one style row in place of the font fields: click it to open the picker. On text without one, open Type settings from the section header; Text style is its first row. Agents apply the same token with a sentence ("set the selected text to typography.h1").

The text stays bound, so a token edit, a brand switch or a mode switch re-applies the style. The same picker holds Create style from this text and Edit in Design system.

What happens if I edit a styled text by hand?

It stays bound, with an override on that one property. The row counts the overrides, and everything else keeps following the style.

The Typography section with one style row reading label, 2 overrides, then Style properties and Reset buttons
A text on the label style with 2 overrides. The button beside the field is Reset.
ControlWhat it does
Reset N overridesPuts every overridden property back on the style
Style propertiesLists the five properties. An overridden row has its own Reset to style. The page also holds Reset all, Edit style in Design system and Detach
Detach styleKeeps the values and removes the style. It sits beside the field while the text has no overrides

Which shadows ship?

Eight shadow composites, all black with an opacity. Apply one with an agent ("give the selected card shadow.md"): it replaces the drop shadows on the element.

TokenLayers (y, blur, spread, opacity)
shadow.2xs1, 0, 0, 0.05
shadow.xs1, 1, 0, 0.05
shadow.sm1, 2, 0, 0.05
shadow.md2, 4, -1, 0.06 and 4, 6, -1, 0.10
shadow.lg4, 6, -2, 0.05
10, 15, -3, 0.10
shadow.xl10, 10, -5, 0.04 and 20, 25, -5, 0.10
shadow.2xl25, 50, -12, 0.25
shadow.inner2, 4, 0, 0.06

All eight are drop(...) layers, shadow.inner included. For a true inner shadow, write an inset(...) layer. Authoring has the syntax.

Can I add my own tokens?

Yes. Any new name becomes a token: a color, a number, a composite, or a string with $type. Pick a name, add it to the file, and it resolves.

Tokens of your own
acme_orange:         boldness(color(#FF6A00))
color.cta:           acme_orange.bold
font.family.display: "Fraunces"
copy.cta { $type: string, $default: "Get started" }

Reach for a role over a raw stop when you bind: a role flips with the theme, and $primary.500 stays the same value. An agent building in a design system must use role names, and raw stops halt its edit.

Where next?