Concepts01/08
What is a design system?
A design system is the set of rules for how a product looks and behaves, such as its colors, spacing, corners and buttons. Written down, the rules keep every screen consistent, even when different people, or different AI chats, build them.
- 1Color. A palette in steps, plus roles for text, backgrounds, borders and actions.
- 2Typography. The typefaces, a type scale, and roles: headings, body, label, caption.
- 3Spacing. Steps on a 4 or 8 px grid for padding and gaps, like this 12 px gap.
- 4Shape. The corner radius for controls, cards and dialogs.
- 5Depth. Shadows, borders or tones that set surfaces apart.
- 6Motion. How long movements take and how they ease, with a reduced-motion mode.
- 7Components. Buttons, fields, cards and menus, with their states.
- 8Brand assets. Logo, icons, illustration, photos and voice. People make these.
- 9Accessibility floors. Minimum contrast, minimum target sizes and a visible focus ring.
Why teams write the rules down
Without written rules, each new screen makes its own small choices, like 8 px corners on one button and 6 px on the next. Over time the app looks slightly wrong, and nobody can say why.
Values typed in by hand
One button gets 8 px corners and the next gets 6 px. A gray typed from memory is a step off the others, and nobody can say why.
.button {
border-radius: 8px;
}
.button.secondary {
border-radius: 6px;
color: #5e6471;
}
.card {
color: #515762;
}
Named values, used everywhere
Each decision has one name. Change it once and every button and card follows.
.button,
.button.secondary {
border-radius:
var(--ds-radius-control);
}
.button.secondary,
.card {
color:
var(--ds-color-text-secondary);
}
A design system fixes this with a short list of agreed values and the reason for each. Designers and engineers share the values, and AI tools read them before they change a screen.
A copy in every tool
Each tool keeps its own copy, and the copies drift apart.
One source that every tool reads
Every tool reads the same number from one token file.
radius.control6 px
What goes into a design system
| Part | What it covers |
|---|---|
| Color | Shades in steps, and which is for text, backgrounds and actions, in light and dark mode |
| Typography | Typefaces, a type scale (the fixed list of text sizes) and roles like headings and body |
| Spacing | Steps for padding and gaps, often on a 4 or 8 pixel grid |
| Shape | Corner radius for controls, cards and dialogs |
| Depth | Shadows, borders or tones that set surfaces apart |
| Motion | How long movements take and how they speed up and slow down, with less motion for people who ask |
| Components | Buttons, fields, cards and menus, with states like hover and error |
| Brand assets | Logo, icons, illustration, photos and voice. People make these. Rules can't. |
| Accessibility floors | Minimum contrast and target size, and a visible focus ring, so more people can use it |
What design tokens are
Design tokens are the rules saved as named values that code and tools can read. The name for the main text color holds one dark gray, and every screen uses the name. See Design tokens and DTCG.
For developers
For example, color.text.primary might hold a dark gray, and space.4 might hold 16 px. The Design Tokens Community Group publishes an open format for tokens. Its first stable version, 2025.10, came out on 28 October 2025. One set of tokens can produce CSS variables, a Tailwind theme, Figma variables and native code for iOS and Android.
What a DESIGN.md is
A DESIGN.md is the design system in plain words, in one file in your project. People read it, and AI agents can be told to read it before changing the interface. See Decisions, DESIGN.md and the overview page.
Small app or large company
The idea is the same at any size. Only how much you write down changes.
| Who | What they write down |
|---|---|
| A student project or small app | Colors, a type scale, spacing, corners and one button: enough to look consistent. |
| A product team | Also components, states, dark mode and rules for using each part |
| A design-system team at a large company | Also who can change the system, how changes are announced and versioned, and how teams adopt it. Here the reasons matter most: many people change it over many years. |
How to make a design system with AI
- Start from what exists: the current CSS, theme files, logo and fonts.
- Answer a few big questions, such as who it's for and how it should feel.
- Work out the scales with rules, which give the same answer every time: color ramps that keep contrast, a type scale with a fixed ratio, spacing steps on a grid.
- Check accessibility with fixed rules. WCAG 2.2 AA asks for at least 4.5:1 contrast for normal text, and targets of at least 24 by 24 CSS pixels.
- Write it down as files: tokens, CSS and a
DESIGN.md, plus a log of every decision and why. - Ask a person for the brand assets, such as the logo and photos.
OpenDesigner follows these steps with the AI tool you already use. It's free and open source, and early: no watched user trials have happened yet. See how it works or install it.
Sources
- Design Tokens Community Group: first stable version, 2025.10
- WCAG 2.2: 1.4.3 Contrast (Minimum) and 2.5.8 Target Size (Minimum)
- OpenDesigner research map: the more than 500 Decision Cards behind the defaults, each with its sources