---
title: "Design tokens"
description: "Every token in Brilliant's default design system: color ramps and roles, spacing, radius, stroke, type scales, text styles and shadows, with values."
section: design-system
order: 3
featured: true
related: design-system/modes-and-brands, editor/color-and-fills, solutions/brand-changes
---

# 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](/docs/design-system/overview) explains how the kinds fit together.

<DocsLiveEmbed variant="switcher" />

## 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.

| Group | Tokens | Seed |
|---|---|---|
| Brand | primary, secondary, tertiary, quaternary | #0080FF, #FF3377, #FF9900, #FFDD00 |
| Neutral | neutral | oklch(55.6%, 0, 0) |
| Utility palettes | red, orange, amber, yellow, lime, green, emerald, teal, cyan, sky, blue, indigo, violet, purple, fuchsia, pink, rose, slate, gray, zinc, stone | Tailwind's OKLCH values. On the hide: list, for accents and data viz |

```text title="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 stop | Ladder lightness | Role | Role in dark mode |
|---|---|---|---|
| .50 | 97% | hint | .900 |
| .100 | 94% | faint | .800 |
| .200 | 87% | subtle | .700 |
| .300 | 80% | soft | .600 |
| .400 | 71% | No role | No role |
| .500 (the seed) | The seed's own | mid | .500 |
| .600 | 50% | firm | .300 |
| .700 | 42% | bold | .200 |
| .800 | 36% | strong | .100 |
| .900 | 29% | intense | .50 |
| .950 | 23% | No role | No 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.

| Role | Points at | Use |
|---|---|---|
| color.surface | neutral.hint | Page background |
| color.surface.container | neutral.faint | Cards and containers |
| color.surface.container.high | neutral.subtle | Elevated surfaces |
| color.surface.hover | neutral.faint | Item under the cursor |
| color.surface.pressed | neutral.subtle | Item at the moment of click |
| color.surface.selected | primary.hint | Current row in a nav, menu or list |
| color.on-surface | neutral.strong | Content on surfaces |
| color.on-surface.selected | neutral.bold | Content on a selected surface |
| color.outline | neutral.soft | Borders |
| color.outline.variant | neutral.subtle | Subtle borders |
| color.text.primary | neutral.bold | Body text |
| color.text.secondary | neutral.firm | Secondary text |
| color.text.disabled | neutral.soft | Disabled labels and icons |
| color.text.display | primary.firm | Hero and title color |
| color.text.display.alt | secondary.firm | Hero callout |
| color.shadow | neutral.950 | Shadow color. A raw stop, so it never flips |
| color.glow | neutral.50 | Glow 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.

| Name | color.NAME | color.on-NAME | color.NAME.container |
|---|---|---|---|
| primary | primary.mid | neutral.50 | primary.hint |
| secondary | secondary.mid | neutral.50 | secondary.hint |
| tertiary | tertiary.mid | neutral.50 | tertiary.hint |
| quaternary | quaternary.mid | neutral.900 | quaternary.hint |
| success | green.mid | neutral.50 | green.hint |
| error | red.mid | neutral.50 | red.hint |
| warning | orange.mid | neutral.900 | orange.hint |
| info | blue.mid | neutral.50 | blue.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.

| Stop | spacing | radius | font.size |
|---|---|---|---|
| none | 0 | 0 | - |
| xs | 4 | 2 | 12 |
| sm | 8 | 4 | 14 |
| md | 12 | 6 | 16 |
| lg | 16 | 8 | 20 |
| xl | 24 | 12 | 24 |
| 2xl | 32 | 16 | 32 |
| 3xl | 48 | 20 | 36 |
| 4xl | 64 | 24 | 40 |
| 5xl | 96 | 32 | 48 |
| 6xl | 128 | 40 | 64 |
| 7xl | - | 48 | 80 |
| 8xl | - | 64 | 96 |
| 9xl | - | 96 | 128 |
| full | - | 9999 | - |

```text title="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) })
```

| Scale | density.compact | accessibility.large-text |
|---|---|---|
| spacing | One step smaller | One step larger |
| radius | Same | Same |
| font.size | Same | One step larger |

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

| Token | Value |
|---|---|
| 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.

| Stop | stroke.width | visibility | font.weight |
|---|---|---|---|
| none | 0 | - | - |
| invisible | - | 0 | - |
| hint | 0.5 | 0.05 | 100 Thin |
| faint | 0.75 | 0.10 | 200 Extra Light |
| subtle | 1 | 0.20 | 300 Light |
| soft | 1.25 | 0.40 | 400 Regular |
| mid | 1.5 | 0.50 | 500 Medium |
| firm | 2 | 0.60 | 600 Semibold |
| bold | 2.5 | 0.80 | 700 Bold |
| strong | 3 | 0.90 | 800 Extra Bold |
| intense | 4 | 0.95 | 900 Black |
| opaque | - | 1 | - |
| thick | 8 | - | - |
| thicker | 16 | - | - |
| thickest | 48 | - | - |

## 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.

| Stop | font.lineHeight | font.letterSpacing |
|---|---|---|
| none | 1.0 | -0.05 |
| tight | 1.25 | -0.025 |
| snug | 1.375 | -0.0125 |
| normal | 1.5 | 0 |
| relaxed | 1.625 | 0.025 |
| loose | 2.0 | 0.1 |

## Which font families ship?

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

```text title="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.

| Token | Size | Weight | Line height |
|---|---|---|---|
| typography.display.lg | font.size.6xl (64) | bold | 1.1 |
| typography.display.md | 52 | bold | 1.1 |
| typography.display.sm | 44 | bold | 1.15 |
| typography.h1 | font.size.3xl (36) | bold | 1.2 |
| typography.h2 | 30 | bold | 1.25 |
| typography.h3 | font.size.xl (24) | firm | 1.3 |
| typography.h4 | font.size.lg (20) | firm | 1.35 |
| typography.body.lg | 18 | soft | normal |
| typography.body.md | font.size.md (16) | soft | normal |
| typography.body.sm | font.size.sm (14) | soft | normal |
| typography.button | font.size.sm (14) | firm | tight |
| typography.input | font.size.md (16) | soft | 1.4 |
| typography.label | font.size.sm (14) | mid | 1.4 |
| typography.caption | font.size.xs (12) | soft | 1.4 |
| typography.code (font.family.mono) | font.size.sm (14) | soft | normal |
| typography.editorial.lg (font.family.serif) | font.size.6xl (64) | bold | 1.1 |
| typography.editorial.md (font.family.serif) | 52 | bold | 1.1 |
| typography.editorial.sm (font.family.serif) | 44 | bold | 1.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.

<DocFigure src="/docs/images/design-system/tokens-overrides.webp" srcMobile="/docs/images/design-system/tokens-overrides-390.webp" stage="panel" alt="The Typography section with one style row reading label, 2 overrides, then Style properties and Reset buttons" caption="A text on the label style with 2 overrides. The button beside the field is Reset." />

| Control | What it does |
|---|---|
| Reset N overrides | Puts every overridden property back on the style |
| Style properties | Lists 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 style | Keeps 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.

| Token | Layers (y, blur, spread, opacity) |
|---|---|
| shadow.2xs | 1, 0, 0, 0.05 |
| shadow.xs | 1, 1, 0, 0.05 |
| shadow.sm | 1, 2, 0, 0.05 |
| shadow.md | 2, 4, -1, 0.06 and 4, 6, -1, 0.10 |
| shadow.lg | 4, 6, -2, 0.05<br />10, 15, -3, 0.10 |
| shadow.xl | 10, 10, -5, 0.04 and 20, 25, -5, 0.10 |
| shadow.2xl | 25, 50, -12, 0.25 |
| shadow.inner | 2, 4, 0, 0.06 |

All eight are drop(...) layers, shadow.inner included. For a true inner shadow, write an inset(...) layer. [Authoring](/docs/design-system/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.

```text title="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?

- Learn the syntax behind these tables: [Authoring](/docs/design-system/authoring).
- Change values per theme, density or client: [Modes and brands](/docs/design-system/modes-and-brands).
- Bind colors on a layer: [Color and fills](/docs/editor/color-and-fills).
- Style type by hand: [Text in the editor](/docs/editor/text).
- Work with shadows on an element: [Strokes and effects](/docs/editor/strokes-and-effects).
