---
title: "Design system overview"
description: A Brilliant design system is a .ds file of named tokens. Edit it visually, as text, or through an agent, and every bound layer follows.
section: design-system
order: 1
featured: true
howto: false
related: solutions/design-system-leads, solutions/brand-changes, editor/components
---

# Design system overview

A design system in Brilliant is a set of named tokens (colors, spacing, radius, type, shadows) stored in a .ds file in your project. A layer binds to a token by name, so one edit updates every layer that uses it, and switching a brand or a mode re-themes a canvas without touching a layer.

<DocsLiveEmbed variant="switcher" />

## Where does a design system live?

In a Styles folder at the project root. Brilliant writes Styles/default.ds into a new project from its built-in default, so every default token exists from the start.

```text title="A project with one brand"
my-project/
  Styles/
    default.ds              // the base system: the file you edit
    acme.ds                 // a brand: only what differs from the base
    .gen/
      default.gen.yaml      // resolved values, regenerated on save
  Canvas.bl
```

External build tools read the .gen.yaml files. They are git-ignored and regenerated, so make your changes in the .ds file.

## How do I edit a design system?

Three ways, and all three write the same file.

| Way | Where | Best for |
|---|---|---|
| Design system editor | The Project tab, then Design system. Clicking a .ds file in Files opens the same editor on that file. | Tuning colors, roles, scales, text styles, shadows and modes with a live preview |
| The .ds file | View as file on any editor page, or Open Design System File in the palette. Any external editor works too: Brilliant watches the file. | New tokens, per-mode branches, custom axes, comments for the AI |
| An agent | Ask the [built-in AI](/docs/ai/overview), or [agents over MCP](/docs/agents/overview). | A whole brand from a sentence |

<DocFigure src="/docs/images/design-system/overview-editor.webp" srcMobile="/docs/images/design-system/overview-editor-390.webp" stage="edge" alt="The Design system editor on its Roles page: roles with their light and dark swatches and a Change button" caption="The Roles page of the Design system editor. The rail beside it lists Colours, Roles, Scales, Type and Effects, then Modes and View as file under System." />

1. **The page bar.** A search for this page, and View as file.
2. **A role.** Its swatches show the light and dark values. Change… points it at another ramp step.

Each edit in the editor is one undo step, and your comments in the file survive it. The [Authoring reference](/docs/design-system/authoring) lists what each page does and the full .ds grammar.

## What kinds of token are there?

Primitives hold fixed values, semantics resolve per mode, aliases point at another token, and composites bundle several values under one name.

| Kind | Written as | Gives you | Changes with mode |
|---|---|---|---|
| Primitive | color(#0080FF), number([4, 8, 12]) | Raw stops: primary.50 to primary.950, spacing.1, spacing.2 | No |
| Semantic | boldness(...), tshirt(...), looseness(...) around a primitive | Role names: primary.mid, spacing.md, font.lineHeight.normal | Yes |
| Alias | color.surface: neutral.hint | A role name for your designs to bind | As its target does. An alias of a raw stop stays fixed |
| Composite | typography.h1, shadow.md | Several values applied as one | Each field follows its token |

```text title="Primitive, semantic, alias, composite"
spacing.overlap.sm: -4
primary:            boldness(color(#0080FF))
color.surface:      neutral.hint
typography.h1:      { fontSize: font.size.3xl, fontWeight: font.weight.bold, lineHeight: 1.2 }
```

Bind role names. They re-tint with the brand and flip between light and dark, so a surface stays a surface and text stays legible on it.

## What are the token names?

Three vocabularies, and every scale uses one of them.

| Vocabulary | Stops | Used by |
|---|---|---|
| boldness (9) | hint, faint, subtle, soft, mid, firm, bold, strong, intense | Color roles, font.weight, stroke.width, visibility |
| tshirt | xs, sm, md, lg, xl, 2xl, 3xl and on, as long as the scale runs | spacing, radius, font.size |
| looseness (6) | none, tight, snug, normal, relaxed, loose | font.lineHeight, font.letterSpacing |

The hint to intense scale measures loudness against the surface, not brightness. neutral.intense is near-black in light mode and near-white in dark mode. A bare color name means its mid stop ($primary is $primary.mid), and font.family works bare too. Every number scale needs a stop: write $spacing.md, never $spacing.

## How do I bind a token to a layer?

Open the dropdown of a field in the right panel and pick a token. The field then shows the token name. Typing a plain value into a bound field clears the binding.

| Property | Where | Tokens listed |
|---|---|---|
| Fill and stroke color | Color picker, Library tab | Color |
| Fill, stroke and element opacity | The opacity field | visibility |
| Corner radius | Radius fields | radius |
| Gap and padding | Auto layout fields | spacing |
| Stroke width | Stroke fields | stroke.width |
| Font family, size, weight, line height | Typography fields | font.* |
| A whole text style | Typography section, the style field or Type settings | typography.* |

A shadow composite goes on through an agent or Blueprint ("give the selected card shadow.md"). The [token reference](/docs/design-system/tokens) shows how text styles behave when you edit one by hand.

### How do I freeze a layer or start over?

| Command in the palette | What it does |
|---|---|
| Unbind Tokens | Replaces every binding on the selection and its children with the value it renders now. It looks identical and stops tracking the system. |
| Reset Design System | Rewrites the design system file with Brilliant's built-in default, replacing your tokens. Cmd+Z brings them back. |
| Create Design System Viewer | Adds a viewer element to the canvas that draws the active system's colors, scales and text styles. |
| Regenerate Design System | Rebuilds every .gen.yaml file from its .ds source. |

## Where next?

- Learn the editor pages and the grammar: [Authoring reference](/docs/design-system/authoring).
- Look up any shipped value: [token reference](/docs/design-system/tokens).
- Add light and dark, density and client brands: [Modes and brands](/docs/design-system/modes-and-brands).
- Bring an existing system over: [import a Figma file](/docs/import/from-figma).
- See the workflow end to end: [Apply a brand change everywhere](/docs/solutions/brand-changes).
- Run a system for a team: [Design system leads](/docs/solutions/design-system-leads).
