hulusi tunc

a design system, figma to code

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

when
2026
role
design and build, alone
for
my own project

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

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

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

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

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

primary button
social sign-in
input, focused
navigation, with its switches
secondary button
brand colour
light and dark
loading
tabs
developer and designer
tertiary button
tags

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.

more of this project is coming.