a design system, figma to code
a design system and the app built on it. my first figma-to-code implementation.

01the problem
about eight months ago i set up a design system from figma to code for the first time. i could design a system in figma and i could not make it exist in code, and every handoff i knew lost something on the way. i wanted to know what happens if the rules are in code before the screens are.
02what i did
- the system first
tokens and components, set up from figma to code. 29 colour scales of 12 shades, light and dark, and a brand palette generated from one hex.
- two or three screens to set the rules
i built a few screens until the style, spacing and rules stopped changing. that was the whole trick.
- then the rest followed
with the rules in, the whole application was almost ready by itself: the other screens assembled from the same parts. orders, catalog, balance, bookings, schedule, settings.
- a library with its own docs
a documentation site for colours, type, buttons, inputs, navigation, kept in sync with the app by a rule in the repo: the same folders, identical.
03what came out
23 shared components, a docs site, and 16 app screens, two of them in dark mode, with a store and a service provider view. all on mock data.
23 components. here are twelve of them, moving.
every one exists twice, in figma and in code, with the same name and the same tokens. hover, focus, loading, dark: all drawn, all built.
the rough edge
it has no backend and no real users, and the app is desktop only. it was where i learned the method, not a product.
