Design systems in code, not just in Figma

If your design system only lives in Figma, it is a picture of a system. Put tokens and components in code so a change made once updates the file and the product together.

The real design system is whatever your engineers built.

Change one token, see it everywhere

Before: a brand change means editing every screen by hand. After: change one value and every screen updates. We build the design system in code, so design and product stay in step.

Change one token. The design file, the components and every screen update together.

color-primary
radius
mode
space-md
1 change · 6 places updated
Tokenscolor-primaryradius4pxspace-md16pxmodelighttokens.jsonDesign variablesCode componentsStyle guidePhoneTabletWeb

Figma-only vs a coded design system

Figma-only
One source of truth
In code
Source of truth

The design file

Tokens and components both sides use

Change a colour

Update file, raise tickets

Update one token

New screen

Designed, then rebuilt

Assembled from ready parts

Dark mode or rebrand

A big project

Swap token values

Drift

Constant

Caught in review

The three layers

1. Tokens

Named values for colour, type, spacing, radius and motion. `color-surface`, not `#F4F4F4`. Figma variables and code read the same list.

2. Components

Buttons, inputs, cards and menus built once in code, with every state: hover, focus, disabled, loading, error. Accessible by default.

3. Patterns and docs

How components fit together for forms, tables and empty screens. A living style guide, rendered from the real code.

How to start without stopping the product

Your product keeps shipping while it gets more consistent. The most-used pieces come first, and your team owns the result.

  1. A CodeFish designer working on a website footer layout in a design tool on a large monitor

    Count the greys, buttons and font sizes. It is usually more than you think.

  2. A CodeFish developer working across three monitors, reviewing code and version history

    Collapse the variations into a small named set, then build the components on every screen first.

  3. Four CodeFish team members working through a problem around a table of laptops, CodeFish Studio sign on the wall

    Swap old UI for system parts as features are touched. No big-bang rewrite. Then docs, contribution rules and an owner on your team.

A CodeFish designer sketching app wireframes on paper in front of a laptop

What it takes

You need people who think in design and write production code. That is product design engineering. Without it, the system splits into a Figma version and a code version, and you are back to handoff problems.

Our own site runs this way: one token set feeds Figma and code, and the style guide renders from the live components.

Design system questions

No. Start with tokens and the handful of components every screen uses, then swap old UI for system parts as each feature gets touched. The product keeps shipping, and the system grows where the work already is.

Yes, for exploring ideas and reviewing flows. The difference is which one is the source of truth. When the coded components are the truth and Figma mirrors them, what designers draw is what engineers can actually ship.

Someone on your team, with contribution rules everyone follows. A system with no owner drifts back into one-off components within a few releases. We hand over the docs, the rules and the habits, not just the code.

Want a design system your team owns?

We build it in your codebase and hand it over with docs and an owner.