Faster handoff
Developers read the same names as designers, so fewer questions come back.
Design System
Figma is the single source of truth. Tokens sync to code automatically, components are read straight from Figma via the Figma MCP, and everything here is built from those tokens only.
Two paths, one source of truth. Values flow automatically, structure is read on demand.
Where a standard exists, use it. Where none fits, build the gap.
Figma's Variables REST API is Enterprise-only, so tokens travel through a custom plugin. For components, the Figma MCP is the standard, so it is used as is.
How the Sign-up Card went from Figma to code. Two MCP reads, no hand-written spec.
Right-click the component set, copy the link to the selection. The link carries the node id, so only this component is read.
One call to get_design_context returns every state, the auto layout, the text styles and the variable bound to each layer.
The first read showed foreign library variables and mixed-up tokens that no screenshot would reveal. They were fixed in Figma, a second read confirmed it.
The MCP returns a React + Tailwind reference. It is adapted to this project: Form Field, Checkbox, Alert and Button are reused, only the card layout is new. Full breakdown
Aliases survive the whole way from Figma into CSS.
/* Component */ --button-primary-bg-default: var(--color-action-primary-bg-default); /* Semantic */ --color-action-primary-bg-default: var(--color-purple-600); /* Primitive */ --color-purple-600: ;
No install needed. The CSS is served straight from the public repository via jsDelivr.
Tokens first, then the components you need. Plus the two web fonts.
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Oswald:wght@500;700&family=Roboto:wght@400;500&display=swap"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/Tobias-Stoll/DesignSystem@main/dist/tokens.css"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/Tobias-Stoll/DesignSystem@main/dist/typography.css"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/Tobias-Stoll/DesignSystem@main/components/button.css"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/Tobias-Stoll/DesignSystem@main/components/input.css"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/Tobias-Stoll/DesignSystem@main/components/checkbox.css"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/Tobias-Stoll/DesignSystem@main/components/alert.css"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/Tobias-Stoll/DesignSystem@main/components/form-field.css"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/Tobias-Stoll/DesignSystem@main/components/signup-card.css">
Plain HTML with a class. All variants and states are on the component pages: Button, Input, Checkbox, Alert, Chip, Status Badge, Kicker, External Link, Form Field, Case Card, Info Card, Work Row, Note, Sign-up Card, Site Header, Contact Block, Site Footer.
<button class="btn btn--primary">Subscribe</button>
<input class="input" type="email" placeholder="you@example.de">
<label class="checkbox">
<input type="checkbox" class="checkbox__box">
<span class="checkbox__text">
<span class="checkbox__label">I want to receive the newsletter</span>
</span>
</label>
<div class="alert alert--success" role="status">You're subscribed!</div>
<h2 class="text-heading-m">Text styles work as classes too</h2>
Every Figma variable is a CSS custom property.
.my-card {
background: var(--color-bg-default);
border: var(--border-width-default) solid var(--color-border-default);
border-radius: var(--radius-container);
padding: var(--space-inset-lg);
color: var(--color-fg-default);
}
Use semantic or component tokens, never primitives. --color-action-primary-bg-default, not --color-purple-600. That way a design change in Figma reaches your code without edits.
Never change tokens in code. Figma is the source of truth: values are changed there and arrive here through the export.
Note: @main always points to the latest export, but jsDelivr may cache it for up to 12 hours.
In a production project you would pin a release, for example @v1.0.0.
Foundations
Three families, one job each. Oswald speaks up, Roboto explains, Roboto Mono labels. Every text style is a Figma text style bound to the font primitives, and a class in typography.css.
Only the weights in the table are loaded. More weights mean slower pages, not better ones.
Oswald · Display
Display and headings. Medium 500, Bold 700 for Display. Condensed, so big headlines stay short.
font/family/displayRoboto · Sans
Body, labels, captions, UI. Regular 400, Medium 500. Built for reading on screens.
font/family/sansRoboto Mono · Mono
Overline labels, counters, email addresses. Regular 400, Medium 500. Never for sentences.
font/family/monoFrom big to small. Names, values and classes are read from the exported tokens, so this list always matches Figma.
A typical section head: Kicker names the section, the heading says what it means, the body explains.
More work
Smaller projects, same care
Body L for intros and leads. Body M for everything else. Keep lines around 60 to 75 characters, so the eye finds the next line easily.
Few rules, kept every time.
| Rule | Why |
|---|---|
| One Display per page | The page title is the loudest thing. Two loud things cancel out |
| Body M is the default | 16/24 reads well on every screen. Body L only for leads, Body S for dense UI |
| Overline only for short labels | Mono is hard to read in sentences. One to four words |
| Skip no heading level | Screen readers navigate by headings. The look comes from the class, the level from the structure |
| Line length 60 to 75 characters | Set max-width around 62ch on long text |
| Muted text stays above 4.5:1 | color/fg/muted on white is 5.1:1, color/fg/subtle only for hints and disabled |
Size and line height primitives. Text styles pick from this scale, nothing in between.
Font primitives used by the text styles.
Foundations
Every variable from Figma, in three layers. Names come from the exported token files,
values are read live from tokens.css, so this page always shows what ships.
Each layer only points to the one below. A change travels up, never sideways.
Figma collection Primitives. Hidden from the Figma pickers, only semantic tokens point here.
Hover the tracks to play each duration with the standard easing. Semantic names (fast, base, slow, slower) point here.
Figma collection Semantic. Names say what a value is for. Every row is an alias of a primitive.
Figma collection Component. Only Button and Input have their own layer, the other components use semantic tokens directly.
Figma text styles, bound to the font primitives. In code each one is a class from typography.css. When to use which: Typography.
Figma effect styles, exported as W3C shadow tokens (tokens/effects.json).
Atom
3 variants × 5 states × 2 sizes. One Figma component set, one CSS class. Uses component tokens (button/…). Secondary is an outline, Large (.btn--lg, 44 px) is for main calls to action and touch targets.
Hover, click, or press Tab to focus.
As in the Figma component set.
| Default | Hover | Pressed | Focus | Disabled |
|---|
Read live from tokens.css. Alias → resolved value.
Atom
5 states, 36px high, text style Body S. Uses component tokens (input/…).
Hover, click to focus, type.
As in the Figma component.
Read live from tokens.css. Alias → resolved value.
Atom
6 states, optional description. Uses semantic tokens directly: no component tokens needed.
Click to check, or press Tab and Space.
As in the Figma component. Combinations like checked + hover follow the system rules in code.
Semantic tokens used by the checkbox.
Atom
Shows the outcome of a whole form. Field errors stay at the field, the alert tells how it went. Uses semantic tokens directly (color/feedback/…).
Trigger an outcome. Screen readers announce it: success politely, errors right away.
As in the Figma component. Height 52px: 16 padding + 20 line height + 16 padding.
Success
Danger
Two kinds of feedback, two places.
| Feedback | Where | Example |
|---|---|---|
| Field error | At the field | "Please enter a valid email address." |
| Alert · Danger | Above the button, form stays filled | "Something went wrong. Please try again." |
| Alert · Success | Replaces the form | "You're subscribed! Check your inbox to confirm." |
Semantic tokens used by the alert.
Molecule
Label + description + Input atom + message. The first molecule: it contains an instance of the Input, so every change to the Input flows in automatically.
Type an email and leave the field. An invalid address switches the field to State = Error.
As in the Figma component. Hover, focus and disabled come from the nested Input.
How the molecule is put together.
| Part | Text style | Token |
|---|---|---|
| Label | Label · 14/20 | --color-fg-default |
| Description | Body/S · 14/20 | --color-fg-muted |
| Input | Input atom | --input-* |
| Message | Body/S · 14/20 | --color-fg-muted · Error: --color-feedback-danger-fg |
| Gap | between header, input, message | --space-gap-sm (8px) · header inside: 0 |
Semantic tokens used by the form field itself. The input brings its own.
Organism
Everything comes together: three Form Fields, a Checkbox, an Alert and a Button. This one was translated straight from Figma via the Figma MCP.
Submit empty to see the errors, fill everything in to subscribe. Turn on the switch to see the server error.
As in the Figma component set (node 46:774).
One call to the Figma MCP (get_design_context) returned structure, variants and the variable bound to every layer.
| Figma | MCP output | In this project |
|---|---|---|
| Component set, State | React prop state | One card, states via classes and ARIA |
| Form Field instances | Raw markup per field | Reused .form-field + .input |
| Checkbox, Alert, Button | Raw markup | Reused .checkbox, .alert, .btn |
| Auto layout + variables | Tailwind with var(--space/gap/lg) | var(--space-gap-lg) from tokens.css |
| Min width 380 | min-w-[380px] | Names stack on narrow screens instead |
The MCP shows what is bound, not just how it looks. The first read found issues a screenshot would never show.
| Where | Read 1 | Read 2 |
|---|---|---|
| Input + checkbox stroke | sds-size-stroke-border (foreign library) | border-width/default ✓ |
| Checkbox error row gap | sds-size-space-300 (foreign library) | space/gap/md ✓ |
| Card border | input/border/default, width unbound | color/border/default + border-width/default ✓ |
| Input padding | button/padding-x, 8px hard-coded in error | input/padding-x + input/padding-y ✓ |
Tokens used by the card itself. The nested components bring their own.
Atom
A short fact about a project: platform, industry, a measured result. Chips are labels, not buttons, so they have no hover or focus. 3 variants, uses semantic tokens directly (color/feedback/…).
As in the Figma component. Height 20px: 2 + 16 line height + 2.
Neutral
B2BSuccess
−30% drop-offInfo
Live demoColor carries meaning, so it stays rare.
| Variant | Use for | Rule |
|---|---|---|
| Neutral | Context: platform, industry, discipline | As many as needed, keep them to one or two words |
| Success | A measured result | One per card, always first. Only real numbers |
| Info | A pointer to something extra, for example a live demo | One per card |
Semantic tokens used by the chip.
Atom
A live status with a pulsing dot, for example "Open to work". It sits in the Site Header. The dot is decoration, the label carries the meaning, so it also works without color.
The dot pulses 3 times after loading, then rests. Hover to restart it.
Calm by default, so it never competes with the content.
| Rule | Why |
|---|---|
| 3 pulses (about 5 s), then still | WCAG 2.2.2: moving content stops within 5 seconds |
| Hover restarts the pulse | A small reward for curiosity, never on its own |
| No motion with reduced motion | prefers-reduced-motion: reduce keeps the dot still |
Semantic tokens used by the badge.
Atom
The small mono label above a headline. The kicker names the section, the headline says what it means. Built on the text style Overline: Roboto Mono, 14 px, sentence case, 2% tracking.
Always directly above the headline, 12px gap.
Let's start
The kicker can be part of the h1, so search engines read the keywords. Same look, better structure.
Product Designer (UX/UI) · Berlin
Product design, from the first data point to the final pixel.
Text style Overline and one semantic color.
Atom
Every link to another site opens in a new tab and says so before the click: with the link-out icon after the last word, and with a hidden hint for screen readers. Works on text links, buttons and whole cards. No own colors, the icon takes the color of the link.
Each one opens a new tab. Your page stays where it was.
Read the repository (opens in a new tab) or open the Figma file (opens in a new tab).
The rule is about where the link goes, not how it looks.
| Link goes to | Behavior |
|---|---|
| Another site (GitHub, Figma, LinkedIn, the live demo) | New tab, link-out icon, hidden hint |
| A page or section of the same site | Same tab, no icon. Arrows (→) only for these |
| A file of the same site (PDF) | New tab, link-out icon, the hint names the file type: "(PDF, opens in a new tab)" |
| Any of the above on a German page | Hint in German: "(öffnet in neuem Tab)" |
| E-mail or phone | Same tab, no icon. The mail app opens, nothing to warn about |
Why the icon alone is not enough.
| Part | Why |
|---|---|
Icon, aria-hidden="true" | Sighted users see it before they click. Screen readers skip it, so it is not read twice |
| Hidden hint "(opens in a new tab)" | Screen readers hear it as part of the link name. WCAG technique G201, supports 3.2.5 Change on Request |
rel="noopener" | The new tab cannot control this page (security) |
| Icon in currentColor | Same contrast as the link text, in every state |
Molecule
One project as a teaser. A visual on a tinted stage, the pillar it proves, a result-first title and a few chips. The whole card is one link. Built from the Chip atom, surface tokens radius/card and Shadow/Card.
Hover a card: it lifts, tilts a little and the image drifts toward you. Tab focuses the whole card.
Four parts, top to bottom.
| Part | Style | Rule |
|---|---|---|
| Stage | 16:10, gradient in Dark, Purple or Blue | A screenshot that bleeds out to the right, or an animation |
| Pillar | Overline, ghost color | Names what the project proves, not the client |
| Title | Heading M | The result first, the method later in the case study |
| Meta | Chips | One Success chip with a real number, then context. Sits at the bottom, so chips line up across a row |
Semantic tokens, shadows and motion used by the card.
Molecule
The Case Card surface without a stage. Three variants for case study content: a result, a step, the facts. They used to be three separate cards in the portfolio with the same surface, now it is one component.
The Step card links to a section: hover it.
Default
Developers read the same names as designers, so fewer questions come back.
Step
Moment 1 · Offer box
Why one big button hid the cheaper option.
Conversion ↑Facts
Same surface, different job.
| Variant | Use for | Content |
|---|---|---|
| Default | Results, takeaways, learnings | Title (Heading S) + one or two lines |
| Step | The key moments of a case study, often linked | Kicker, title (Heading M), text, optional result chip |
| Facts | "At a glance" next to the hero | A definition list: label (Overline) and value |
Same surface tokens as the Case Card.
Molecule
A compact list for smaller projects: name, one line on what it was, a status tag. Lighter than a card, so the big cases stay in front.
Hover a row. "Soon" rows stay still. Under 960px the description moves to its own line.
Semantic tokens used by the row.
Molecule
A pinned paper note for a guestbook or feedback wall. Three papers: a visitor's note, the owner's note, and a plain one that holds a form. The only component with a playful easing (motion/easing/playful).
Hover a note: it straightens up. The Plain note holds Form Field, Input and Button.
Loved the token workflow, especially the QA loop!
Anna
Hi! I read every note. Honest feedback is the best kind.
Tobias
The paper tells who wrote it.
| Paper | Use for |
|---|---|
| Default | Notes from visitors |
| Accent | The owner's own note, at most one per wall |
| Plain | The form to write a note. Stays straight, so typing feels stable |
Decor colors for paper and pin, plus the card shadow.
Organism
Sticky navigation for a one-page site with case studies. Brand, section links and the Status Badge. It blurs the page behind it and gets a hairline once you scroll. Case studies add a reading progress bar.
Static previews. Under 640px the status badge hides and the links move closer.
Top
Scrolled, with reading progress
Semantic tokens used by the header.
Organism
The end of a page. A big headline with the call to action in the primary color, the email as selectable text, one primary action and quiet links. Built from Kicker and Button.
Copy the email. The headline scales with the window (36 to 64px).
Finish
Semantic tokens used by the block. Buttons bring their own component tokens.