brsh

Your design system ​

This page helps you see, save and share the design system that Agents use.

Your design system is the set of values your file uses again and again. It holds spacing, font sizes, fonts, radii, colors, shadows and icon sizes. Agents compare every layer to it.

How to see your design system ​

  1. Open Agents (⌘L).
  2. Open the Art Director.
  3. Open the System tab.
  4. Click "Design system" to open it.

Each line shows the values found. The state reads "Inferred", "Partly saved", "Saved" or "Not found yet".

Agents find the values in your file. Each scale keeps the values used often enough. A spacing scale has at most 10 steps. A font size scale has at most 8.

How to save your design system ​

  1. Open the System tab.
  2. Click Save beside "Design system".

Save writes the values as variables, such as space.1, font-size.1 and color.blue-600. From then on, those variables are the rule. Fixes bind layers to them.

  • A second save never changes a variable you saved.
  • Until you save, the values can shift as you edit.

How to see it on the canvas ​

An agent draws the design system on a page called "Design system". It does this after you save, or after it sets up tokens.

The page has color swatches (light and dark side by side), each font with its weights, the type scale, spacing bars, radii and shadows. They are bound to the variables. When a variable changes, the page follows. The checks skip this page.

This file or a separate file ​

The first time an agent sets up a design system, it asks one question. Should it live in this file, on its own page, or in a separate file other files can share?

A separate file is Design system.brsh. It sits next to your saved file. Your file links to it as the library ds. Layers use the tokens as $ds:…. The move is one undo step. It never overwrites a file that is already there.

Safe rules ​

  • Agents never flag a value outside a scale.
  • A color binds only to a variable that has one value in every theme.
  • A color binds only when one variable has that color.
  • A contrast fix uses a color already used for text.

Known limits ​

Until you save, the design system is inferred and can shift as you edit.