Token reference

Complete reference for the v2 design token system. All tokens are CSS custom properties defined via Tailwind v4's @theme directive.

Color scales

Each scale provides 14 OKLCH steps (0-13). Step 0 is the lightest extreme, step 13 the darkest. Dark mode swaps the underlying values — step numbers stay the same.

neutral

0

1

2

3

4

5

6

7

8

9

10

11

12

13

brand

0

1

2

3

4

5

6

7

8

9

10

11

12

13

brand-secondary

0

1

2

3

4

5

6

7

8

9

10

11

12

13

accent

0

1

2

3

4

5

6

7

8

9

10

11

12

13

danger

0

1

2

3

4

5

6

7

8

9

10

11

12

13

success

0

1

2

3

4

5

6

7

8

9

10

11

12

13

warning

0

1

2

3

4

5

6

7

8

9

10

11

12

13

info

0

1

2

3

4

5

6

7

8

9

10

11

12

13

Intent semantic tokens

Set by intent utilities (e.g. intent-accent). Each intent maps scale steps to semantic roles.

Surface

TokenStepUsage
--intent-surface-default1Page/canvas background
--intent-surface-subtler2Barely tinted background
--intent-surface-subtle3Noticeable tint, button hover bg
--intent-surface-strong9 (neutral: 12)Solid color, primary buttons
--intent-surface-inverted12Inverted surface
--intent-surface-raised0 (dark: 2)Elevated card with shadow
--intent-surface-sunken2 (dark: 0)Inset area with shadow

Border

TokenStepUsage
--intent-border-subtler5Card edges, very faint
--intent-border-subtle6Dividers, hr
--intent-border-normal7Standard borders
--intent-border-strong9Bold borders
--intent-border-inverted12Inverted borders

Foreground

TokenStepUsage
--intent-fg-subtler10Placeholder, hint text
--intent-fg-subtle11Secondary text, button text
--intent-fg-default12Body text
--intent-fg-strong13Bold headings
--intent-fg-inverted0White/black text on strong surfaces

Raw steps

TokenStepUsage
--intent-0 … --intent-130–13Direct access to any scale step for hover/active states

Typography

Font sizes (fluid from lg)

TokenStepUsage
--text-xs0.75rem12px
--text-sm0.875rem14px
--text-base1rem16px
--text-lgclamp(1.125rem…1.25rem)18–20px fluid
--text-xlclamp(1.25rem…1.5rem)20–24px fluid
--text-2xlclamp(1.5rem…2rem)24–32px fluid
--text-3xlclamp(1.75rem…2.5rem)28–40px fluid
--text-4xlclamp(2rem…3rem)32–48px fluid
--text-5xlclamp(2.25rem…4rem)36–64px fluid

Semantic line heights

TokenStepUsage
--leading-display1.2Headings
--leading-ui1.35App interface
--leading-prose1.5Long-form
--leading-code1.625Code blocks

Semantic letter spacing

TokenStepUsage
--tracking-display-0.02emHeadings
--tracking-ui-0.01emApp interface
--tracking-prose-0.01emLong-form
--tracking-code0emCode blocks

Elevation

Box shadows

TokenStepUsage
--elevation-raiseddrop shadowCards, floating elements
--elevation-sunkeninset shadowRecessed areas, inputs
--elevation-overlaylarge shadowModals, popovers

All tokens are defined in packages/core/src/css/tokens.css. Intent mappings are in intents.css. Emphasis utilities are in emphasis.css.