UI/UX Design · Tutorial 6 of 8
Design Systems: consistency without copying
By the FUTEAC Team · 25 November 2026 · 15 min read · Intermediate
In short
A design system is three things kept in one place: tokens (colour, spacing, type and corner values), components (the reusable pieces built from those tokens, like buttons and cards), and rules (the written decisions about when to use each one). Every new screen reuses the same decisions instead of inventing new ones, so the product stays consistent as it grows.
- A design system is a set of shared decisions, not a pile of screens. The decisions come first. The screens follow.
- Tokens are the foundation. Name each colour, spacing step and corner radius once, and every component reads from those names. Change a token and every component follows.
- Build one component properly before you build ten. A button and a card, built from tokens and tested, teach you more than a library of untested pieces.
- Copying a component and changing it by eye is how systems die. Two buttons that look almost the same but are not are worse than two that look different on purpose.
- This tutorial feeds the UX Design & Figma Prototyping course (/course/ux-design-and-figma-prototyping) and the Design Systems skill (/skill/design-systems).
Before you start
What a design system is, and what it is not
Open a food delivery app and count the buttons. The "Order now" button on the home screen, the "Add to basket" button on a dish, the "Checkout" button at the end: same colour, same corners, same height, same text size. That sameness is not laziness. It is a decision, made once, that every screen reuses. A new designer joining the team does not have to guess which green the button is. The answer is written down, in one place, and the button reads it.
A design system is that one place. It holds three things. Tokens are the named values: the colours, spacing steps, type sizes and corner radii. Components are the reusable pieces built from tokens: buttons, cards, inputs, badges. Rules are the written decisions: when to use the primary button and when to use the secondary one, how much space sits between a heading and a paragraph, what a sale price looks like.
What it is not: a folder of finished screens. Screens are the output. The system is the decisions behind them. And it is not a tool. Figma holds the system in this tutorial, and code holds it in the second half, but the system itself is the decisions, and those could live on paper.
The analogy that holds up best is a kitchen where everyone uses the same measuring cups. One cook's "cup" is not bigger than another's, so the recipe works no matter who cooks it. Tokens are the measuring cups. Without them, every cook eyeballs it, and the same dish comes out different every time.
A small shop needs a small system. This tutorial builds one for a practice shop, "Amna's Corner Shop", with five colours, three spacing steps, two corner radii, one button, one card, and a page of rules. That is a complete system. A bigger product needs more pieces, not a different idea.
Start with tokens, not components
Beginners open Figma and draw a button. The button looks fine, so they draw a card, then a second button for another screen, and by the third screen the buttons have drifted: one is a slightly different green, one has rounder corners, one is two pixels taller. The mistake was the order. Components come second. Tokens come first, because tokens are where the decisions live.
The token set for this tutorial uses real values from the FUTEAC site's own Teal and Sand palette, which lives in apps/web/app/globals.css and is generated from design-tokens/tokens.json. Using a real palette keeps every number honest, and the palette is small enough to learn from:
| Token | Value | Used for |
|---|---|---|
| Primary | #0f766e (deep teal) | Buttons, links |
| Primary dark | #115e59 | Button hover state |
| Accent | #d97706 (amber) | Prices, sale badges |
| Ink | #0c2b29 | Headings |
| Body text | #3c5753 | Paragraphs |
| Line | #e5dbc7 | Borders |
| Page | #fbf7ed (warm paper) | Page background |
| Card | #ffffff | Card background |
Three spacing steps, in eights, because multiples of 8 keep rhythm without arithmetic: 8px, 16px, 24px. Two corner radii: 8px for buttons, 12px for cards. One type scale to start: headings 28px, card titles 20px, body 16px, prices 18px bold.
Notice what is missing. There is no second teal, no third grey, no "slightly darker teal for this one screen". Every colour has a name and a job. If a colour has no job, it does not go in the system. That discipline is the system.
Build the tokens in Figma
In Figma, tokens become styles, and styles are what components read. Do it in this order: colour styles first, then text styles, then nothing else until a component needs it.
- Open your Figma file and draw eight rectangles in a row. Fill each with one token colour from the table above.
- Select a rectangle, open the Fill panel, click the four-dot styles icon, and click the plus to create a style. Name it with its token name, for example
colour/primary. Repeat for all eight. The slash groups them into a folder calledcolourin the styles list. - Now the text styles. Draw three text boxes: a page heading, a card title, and a paragraph. Set the heading to 28px bold in ink, the card title to 20px semibold in ink, the paragraph to 16px regular in body text. Select each, open the Text panel, click the styles icon, and save them as
text/heading,text/card-titleandtext/body. - Check your work: select any rectangle and look at the Fill panel. It should show the style name, not a hex value. If it shows a hex value, the style did not attach, and that rectangle is not part of the system yet.
One decision to make now, because it saves an argument later: who is allowed to change a token? In a team of one, the answer is you, but write it down anyway. In a team, the answer is one named person. A token anyone can change is a token that drifts, and drift is what the system exists to prevent.
Turn the tokens into code
A design system that lives only in Figma is half a system, because developers build from code, not from a Figma file. The same tokens need to exist in code, with the same names and the same values. In CSS, that is a :root block of custom properties, kept in one file called tokens.css:
:root {
--color-primary: #0f766e; /* deep teal: buttons, links */
--color-primary-dark: #115e59; /* teal, hover state */
--color-accent: #d97706; /* amber: prices, sale badges */
--color-ink: #0c2b29; /* headings */
--color-body: #3c5753; /* body text */
--color-line: #e5dbc7; /* borders */
--color-page: #fbf7ed; /* page background */
--color-card: #ffffff; /* card background */
--space-1: 8px;
--space-2: 16px;
--space-3: 24px;
--radius-card: 12px;
--radius-button: 8px;
}Every value in that file matches the Figma styles from the last section, name for name and number for number. That matching is the whole job. A developer who opens this file sees the same decisions a designer sees in Figma, and neither of them has to ask the other what the button colour is.
The naming matters more than it looks. --color-primary says what the colour is *for*, not what it looks like. If the shop rebrands from teal to green next year, the name stays right and only the value changes. A token named --color-teal would be wrong the day the brand changed. Name tokens by their job, never by their appearance.
Build one component from tokens
One component, built properly, proves the system works. Build the button and the card, and build them from tokens only. No hex value and no pixel value may appear in the component code except through a token.
The button:
.btn {
display: inline-block;
font-size: 16px;
font-weight: 600;
padding: 10px 18px;
border-radius: var(--radius-button);
border: 1px solid var(--color-primary);
cursor: pointer;
}
.btn-primary {
background: var(--color-primary);
color: #ffffff;
}
.btn-secondary {
background: var(--color-card);
color: var(--color-primary);
}The card:
.card {
background: var(--color-card);
border: 1px solid var(--color-line);
border-radius: var(--radius-card);
padding: var(--space-2);
width: 300px;
}
.card h2 {
color: var(--color-ink);
font-size: 20px;
margin: 0 0 var(--space-1);
}
.price {
color: var(--color-accent);
font-weight: 700;
font-size: 18px;
}Put them on a page and render it. The page used for this tutorial was rendered in headless Chromium 141, and the browser reported these real measurements: the primary button is 40px tall, its background is rgb(15, 118, 110), which is #0f766e, and its corner radius is 8px. The card's content is 300px wide, with 16px padding on all sides and a 12px corner radius, so it measures 334px across on screen once padding and border are added. The price reads rgb(217, 119, 6), which is #d97706, and the page background is rgb(251, 247, 237), which is #fbf7ed. Every colour, radius and spacing on the page comes from a token. Nothing on the page was typed by hand.
That is the test for a component: if you can delete every token value from the file and the component still has no colour, spacing or radius of its own, it is built from the system. If a hex value is hiding in the component, the system has a leak.
The wrong turn: copying a component and changing it by eye
Here is the wrong turn every beginner takes, reproduced live so you can see the drift measured. Two "Order now" buttons were placed side by side. The first reads its colour and radius from the tokens. The second was copied and then changed by eye: a teal picked from memory, corners rounded to a rounder-looking 4px. They look almost identical on screen. The browser says otherwise:
token button: rgb(15, 118, 110), radius 8px
copied button: rgb(14, 124, 116), radius 4pxrgb(15, 118, 110) is the token teal #0f766e. rgb(14, 124, 116) is #0e7c74, a teal nobody chose, typed from memory and wrong in every channel. The radius is half the token value. A user comparing the two screens would feel something is off without knowing what. A developer handed the second button would copy the wrong values forward, and the drift would spread.
The fix is not a better eye. It is never typing a colour or a radius into a component at all. If a value is not a token, it does not go on the page. When the design needs a new value, add a token first, name it by its job, and then use it. That order is the difference between a system and a collection of screens that happen to look similar today.
Write the rules down
Tokens and components without rules are a parts box, not a system. Rules are short, written decisions, and a page of them is enough to start. Write them where the team will actually read them, in the same Figma file or the same folder as tokens.css. The starter set for the Corner Shop:
- Primary button: one per screen, for the main action only. Everything else is secondary.
- Accent colour: prices and sale badges only. Never body text, never a button.
- Spacing: only 8, 16 and 24. If a gap needs another number, the layout is wrong, not the scale.
- Card radius is 12, button radius is 8, always. A card with 8px corners is a button-shaped card, and a button with 12px corners is a card-shaped button.
- New colour, new token first. No hex value in a component file, ever.
Five rules, each one sentence, each one enforceable by looking. A rule nobody can check is not a rule, it is a wish. "Be consistent" is a wish. "Spacing is only 8, 16 or 24" is a rule, because a 20px gap is visibly wrong against it.
How to verify it worked
Change one token and watch the whole page follow. In tokens.css, change --color-primary from #0f766e to #115e59 and reload the page. Every primary button and every link changes colour at once, and the card, the price and the page background do not move. Change it back. That is the verification: one edit, many components, zero surprises.
Then run the leak check. Search the component files for #, the character that starts a hex colour. The only matches should be in tokens.css. A hex value anywhere else is a component that stopped reading from the system.
Finally, hand the system to someone else. Ask them to build one new screen, a checkout page, using only the tokens, the two components and the five rules. If they finish without asking you a question about a colour or a size, the system is complete enough to use. If they ask, the answer belongs in the rules, not in a chat message.
Try it yourself
1. Open Figma and build the eight colour styles and three text styles from section 3, using the token table. Select a rectangle and confirm the Fill panel shows the style name, not a hex value. 2. Copy the tokens.css file from section 4 into a folder with the button and card code from section 5, and open the page in a browser. Change --color-accent to a different amber and reload. The price should change and nothing else should. 3. Deliberately break it: copy the primary button, change its background to a teal you pick by eye, and compare the two with your browser's developer tools. Write down both computed colours. That gap is what the system prevents. 4. Write five rules for a project of your own, using the Corner Shop rules as a template. Keep each rule to one sentence, and make each one checkable by looking.
Continue in the free course: UX Design & Figma Prototyping →
Common mistakes
- Drawing components before naming tokens. The third screen always drifts from the first two. Name the tokens first, then build components from them.
- Naming tokens by appearance instead of by job.
--color-tealis wrong the day the brand changes colour.--color-primarystays right, because the job did not change. - Copying a component and changing it by eye. The copy ends up
rgb(14, 124, 116)instead ofrgb(15, 118, 110), and the drift spreads to every screen that copies the copy. Change the token, or add a new one, never retype a value. - Building twenty components before testing one. A button and a card, rendered and measured, prove the system. Nineteen untested components prove nothing except enthusiasm.
- Writing rules nobody can check. "Be consistent" cannot be checked. "Spacing is only 8, 16 or 24" can be, because a 20px gap is visibly wrong against it.
- Keeping the system in Figma only. Developers build from code. If the tokens do not exist in
tokens.csswith the same names and values, the Figma file and the website will drift apart within a week.
Frequently asked questions
Is a design system only for big teams?
No. A team of one benefits most, because the system is the memory of decisions you made last month. The Corner Shop system in this tutorial is eight colours, three spacing steps and two components, and it already stops the drift that a single designer creates alone.
Do I need a special tool to build one?
No. Figma holds the styles in this tutorial, and a plain CSS file holds the tokens in code. Dedicated tools exist for large teams, but they solve the same problem this tutorial solves with styles and a file.
What is the difference between a design system and a component library?
A component library is the parts: buttons, cards, inputs. A design system is the parts plus the tokens they are built from plus the rules for using them. A library without tokens and rules drifts. A system does not.
How many tokens should I start with?
As few as you can. Eight colours, three spacing steps and two radii covered a whole shop in this tutorial. Add a token only when a real screen needs a value that no token provides, and name it by its job when you do.
When should I change a token?
When the design decision changes, not when one screen wants to be special. If a single screen needs a different colour, that is usually a sign the screen is wrong, or that a new token with a real job is needed. Either way, the change happens in the token file, once, and every screen follows.
Follow the UI/UX Designer Roadmap
Design clean, user-friendly interfaces and prototypes with modern design tools. Free, step by step, at your pace.
View the Roadmap