Skip to content

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.

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.

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.

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.

WayWhereBest for
Design system editorThe 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 fileView 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 agentAsk the built-in AI, or agents over MCP.A whole brand from a sentence
The Design system editor on its Roles page: roles with their light and dark swatches and a Change button
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 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.

KindWritten asGives youChanges with mode
Primitivecolor(#0080FF), number([4, 8, 12])Raw stops: primary.50 to primary.950, spacing.1, spacing.2No
Semanticboldness(...), tshirt(...), looseness(...) around a primitiveRole names: primary.mid, spacing.md, font.lineHeight.normalYes
Aliascolor.surface: neutral.hintA role name for your designs to bindAs its target does. An alias of a raw stop stays fixed
Compositetypography.h1, shadow.mdSeveral values applied as oneEach field follows its token
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.

VocabularyStopsUsed by
boldness (9)hint, faint, subtle, soft, mid, firm, bold, strong, intenseColor roles, font.weight, stroke.width, visibility
tshirtxs, sm, md, lg, xl, 2xl, 3xl and on, as long as the scale runsspacing, radius, font.size
looseness (6)none, tight, snug, normal, relaxed, loosefont.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.

PropertyWhereTokens listed
Fill and stroke colorColor picker, Library tabColor
Fill, stroke and element opacityThe opacity fieldvisibility
Corner radiusRadius fieldsradius
Gap and paddingAuto layout fieldsspacing
Stroke widthStroke fieldsstroke.width
Font family, size, weight, line heightTypography fieldsfont.*
A whole text styleTypography section, the style field or Type settingstypography.*

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

How do I freeze a layer or start over?

Command in the paletteWhat it does
Unbind TokensReplaces every binding on the selection and its children with the value it renders now. It looks identical and stops tracking the system.
Reset Design SystemRewrites the design system file with Brilliant’s built-in default, replacing your tokens. Cmd+Z brings them back.
Create Design System ViewerAdds a viewer element to the canvas that draws the active system’s colors, scales and text styles.
Regenerate Design SystemRebuilds every .gen.yaml file from its .ds source.

Where next?