Book a callGitHub224

Concepts01/08

What is a design system?

Updated · Suggest a change

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.

  1. 1
    Color. A palette in steps, plus roles for text, backgrounds, borders and actions.
  2. 2
    Typography. The typefaces, a type scale, and roles: headings, body, label, caption.
  3. 3
    Spacing. Steps on a 4 or 8 px grid for padding and gaps, like this 12 px gap.
  4. 4
    Shape. The corner radius for controls, cards and dialogs.
  5. 5
    Depth. Shadows, borders or tones that set surfaces apart.
  6. 6
    Motion. How long movements take and how they ease, with a reduced-motion mode.
  7. 7
    Components. Buttons, fields, cards and menus, with their states.
  8. 8
    Brand assets. Logo, icons, illustration, photos and voice. People make these.
  9. 9
    Accessibility floors. Minimum contrast, minimum target sizes and a visible focus ring.
The parts of a design system, on one card: a palette in steps and color roles, type roles, spacing from a scale, corners, depth, motion, components, the brand assets only a person makes, and the accessibility floors that stay locked.

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.

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

ButtonButton
.button,
.button.secondary {
  border-radius:
    var(--ds-radius-control);
}
.button.secondary,
.card {
  color:
    var(--ds-color-text-secondary);
}
Hand-typed values drift: two buttons with different corners and two grays a step apart. A named value is set once and read everywhere, so every use changes together.

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.

Design tool8 px
Code6 px
A new screen from an AI chat12 px

One source that every tool reads

Every tool reads the same number from one token file.

opendesigner/tokens/
radius.control
6 px
DesignersFigma variables6 px
EngineersCSS, Tailwind, Swift, Compose6 px
AI toolsDESIGN.md, read before any change6 px
Copies drift apart; one token file that every tool reads keeps them the same.

What goes into a design system

PartWhat it covers
ColorShades in steps, and which is for text, backgrounds and actions, in light and dark mode
TypographyTypefaces, a type scale (the fixed list of text sizes) and roles like headings and body
SpacingSteps for padding and gaps, often on a 4 or 8 pixel grid
ShapeCorner radius for controls, cards and dialogs
DepthShadows, borders or tones that set surfaces apart
MotionHow long movements take and how they speed up and slow down, with less motion for people who ask
ComponentsButtons, fields, cards and menus, with states like hover and error
Brand assetsLogo, icons, illustration, photos and voice. People make these. Rules can't.
Accessibility floorsMinimum 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.

WhoWhat they write down
A student project or small appColors, a type scale, spacing, corners and one button: enough to look consistent.
A product teamAlso components, states, dark mode and rules for using each part
A design-system team at a large companyAlso 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

  1. Start from what exists: the current CSS, theme files, logo and fonts.
  2. Answer a few big questions, such as who it's for and how it should feel.
  3. 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.
  4. 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.
  5. Write it down as files: tokens, CSS and a DESIGN.md, plus a log of every decision and why.
  6. 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