the product had a small UI kit and no design system. I proposed one, defended it to the developers, and later moved it into code.
overview
from a small kit to a system in code
A design system is a shared set of colours, text sizes and ready parts, like buttons and table rows. Everyone builds screens from the same set, so screens look and behave the same.
This product did not have one. It had a small UI kit made before I joined. I proposed a real system, built it, kept it alive as the product grew, and moved it into code. This page shows what I started from and the system as it is now.
- before meA small UI kit. No system.
- the pitchI proposed a system and defended it to the developers.
- updatesIt grew as new screens appeared.
- in codeMoved into code. Rebuilt for the redesign.
before
a kit, not a system
When I joined, the product had a small UI kit made before me: four colour ramps, buttons, tabs, claim statuses, inputs, option chips and table rows.
It was a set of drawn parts. Colours were raw codes with no names for what they are for. There were no rules for when to use what, and no documentation. The team had never worked with a design system.
colours
buttons: default, hover, active, disabled
tabs
claim statuses
inputs: empty, selected, error, disabled
option chips and pages
table rows: header, hover, default, disabled
the pitch
first I had to defend the idea
Nobody asked for a design system. It was my idea, and it was new for the developers. Before building it, I had to explain to them why a kit was not enough and get them to agree to work with a system. They had two objections.
“it is extra work, we have deadlines”
My answer: we do not build everything at once. I take only the parts from a screen that is already in work. There is no separate task called “make a system”.
“the design will change anyway”
My answer: that is why colours are named after their job. The value changes, the name stays, and the code is not touched.
I made my first version by hand. This was before I had an AI assistant for this kind of work.
After that I kept updating it. When a new screen needed a part that did not exist, the part went into the system first and into the screen second.
the hardest problem
one colour, one name, many jobs
The same green was used everywhere: on the main button, in links, on the active tab, in icons. In the kit and in code it had one name. So nobody could tell what a colour was for. Changing it in one place changed it in all the others.
I fixed it by naming colours after their job. Several names can point to the same colour today, and each can change on its own tomorrow.
before: one name
- green button, link, tab, icon
One change repaints four different things.
after: a name for each job
- button/primary/bg
- text/brand
- border/brand
- icon/brand
Only the button changes. The rest stays.
in code
then I moved it into code
A system that lives only in Figma gets out of date. So the next step was to move the system into code. The developers had no time for it, so I did it myself with Claude, an AI assistant. The result was one file of CSS variables for both themes, with the same names as in Figma. I handed it to the developers and they connected it. Now a colour has one name, and that name is the same in the design file and in the product.
The names work in three layers. Screens never use a raw colour. They use a name that says what the colour is for.
green/700action/primary/bgButtonAI output is not the same every time, so I treated it as a draft. I checked every token value against Figma, looked at both themes, searched the code for raw colour values that were left, and compared the screens before and after.
the system now
the same idea, rebuilt for the redesign
The real system is much bigger than what fits on this page. In the current product file there are about 240 component sets with more than 1,300 variants, and they are used on screens over 9,000 times.
component sets in the product file
variants: states, sizes, themes
times they are used on screens
Nobody can read 240 components in a portfolio. So below is a slice: the foundations and the core parts from each group, rebuilt for the redesign that the other cases on this site use.
A kit is a box of parts. A system also says how the parts are named, when to use each one, how they behave on a phone and in the dark theme, and how a new part gets in. This is what it covers:
Below is the documentation. Switch the theme to see every part change at once.
the slice shown here
raw colours
colour tokens, each in light and dark
text styles, desktop and phone
core components, out of about 240
Raw colours
Seven ramps. Screens do not use them directly.
Colour tokens
Each token is named after its job and points to a raw colour. In the dark theme it points to another one. The main ones:
bg/canvasneutral/50page behind everythingbg/surfaceneutral/0panels, cards, tablebg/subtleneutral/100blocks inside a paneltext/primaryneutral/950main text and numberstext/secondaryneutral/700labels, helper texttext/tertiaryneutral/650placeholders, kopecksborder/defaultneutral/200inputs, dividersborder/subtleneutral/100table hairlinesaction/primary/bggreen/700the one main buttonaction/primary/subtlegreen/50selected item, AI suggestionfocus/ringgreen/600keyboard focussource/rrp/fgviolet/700price from the manufacturer listsource/rsa/fgblue/700price from the reference databasesource/manual/fgorange/700price typed by the expertstatus/success/fggreen/700completestatus/warning/fgamber/700something is missingstatus/danger/fgred/700cannot be calculatedText styles
One typeface, Golos Text. Numbers have equal width, so columns of prices line up.
display/total, 32/38heading/lg, 22/28heading/md, 16/22body/md, 14/20body/md-strong, 14/20body/sm, 13/18label/sm, 12/16caption, 12/16Spacing
A scale from 2 to 40. Nothing in between.
Corner radius
Five steps, from chips to panels.
actions and inputs
Button
- use
- Primary for the main action, secondary for supporting ones, ghost for inline and low-priority ones.
- rule
- One primary button per view.
- a11y
- 36 px high on desktop, 48 px on phone. Focus ring is always visible.
Field
- use
- Short numeric input with a unit.
- rule
- The label stays visible while typing. No placeholder instead of a label.
- a11y
- Label is tied to the input. Numbers use tabular figures.
Checkbox
- use
- A yes or no that is saved together with the form.
- rule
- The label is a statement, not a question.
- a11y
- The label is part of the target, so the hit area is the whole line.
Dropdown
- use
- Pick one value from a known list.
- rule
- Under five options and enough room: show them all, do not hide them in a dropdown.
- a11y
- Opens with Enter, moves with arrows, closes with Escape.
navigation
Tab
- use
- Sections of one estimate, each with the number of lines inside.
- rule
- The count is always shown, even when it is zero.
- a11y
- Arrow keys move between tabs.
Nav item
- use
- One section of a claim in the sidebar. Has a collapsed, icon-only form.
- rule
- When collapsed, the label moves to a tooltip and the counter becomes a badge.
- a11y
- Collapsed items keep their full name for screen readers.
Step item
- use
- One step in a long form, like claim setup.
- rule
- A step always says what is still missing. A finished step shows a tick.
- a11y
- The current step is announced as “step 3 of 8”.
data
Source chip
- use
- Shows where a price comes from: manufacturer list, reference database, or typed by the expert.
- rule
- A source keeps its colour everywhere. Green is never a source.
- a11y
- Colour always comes with the text label.
Status badge
- use
- The state of a total: every line priced, different sources mixed, some lines without a price, or cannot be priced.
- rule
- Only on totals, not on single lines.
- a11y
- Each state has its own icon, so it reads without colour.
Part row
- use
- One part in the estimate: the active price, its source, and what the other sources say.
- rule
- The other prices are always visible, not hidden in a tooltip.
- a11y
- The whole row is one target on a phone.
Total line
- use
- The breakdown of a total, line by line.
- rule
- Kopecks are quieter than roubles. Minus lines are red and start with a minus.
- a11y
- Minus is a real minus sign and is read as “minus”.
Photo card
- use
- A photo tied to a car part, with the first guess made by AI.
- rule
- An AI guess is always marked as a guess and shows how sure it is.
- a11y
- The card says the part name and the AI result in text, not only in colour.
Party card
- use
- A person in the accident: the owner or the one at fault.
- rule
- The role is shown by the band colour and by the title together.
- a11y
- The role is the heading of the card.
feedback
Banner
- use
- A message above a table.
- rule
- Says what is wrong, what it does to the total, and gives one action.
- a11y
- Announced to screen readers when it appears.
Tooltip and toast
- use
- Tooltip names an icon. Toast confirms an action that just happened.
- rule
- A toast for a destructive action always offers Undo.
- a11y
- Tooltips appear on keyboard focus too. Toasts do not steal focus.
Skeleton
- use
- Shown while a table or a card is loading.
- rule
- The skeleton has the shape of what will appear, so the page does not jump.
- a11y
- Marked as busy for screen readers. Does not move if motion is reduced.
Empty state
- use
- A list or a screen with nothing in it yet.
- rule
- Says why it is empty and gives the one next action.
- a11y
- The action is a real button and is first in the tab order.
rules
six rules that hold it together
colour has one job each
Violet, blue and orange say where a price came from. Green means an action or a selection. They never swap.
colour never works alone
Every status has an icon and a word. The screen still reads in grey.
one main button per view
If two things look most important, neither is.
flat by default
Panels are separated by tone, tables by thin lines. Shadows are for things that float.
contrast is checked, not assumed
Every text colour is at least 4.5 to 1 against every surface it sits on, in both themes. The check found one colour that failed. I changed its value, not its name.
money is typeset
Equal-width digits, quiet kopecks, and minus lines that start with a real minus.
results
what changed for the team
There are no numbers for this one. These are the three things that changed in daily work.
fewer questions
Developers stopped asking which colour or spacing to use.
screens are assembled
A new screen is put together from ready parts. It is not drawn from zero.
cleaner reviews
Fewer review comments like “this is the wrong green”.
what did not work
two things I have not won
I owned the system: I decided what goes in and how it is named. The developers owned how it is wired in code. That split worked. Two other things did not.
a second designer
In 2026 a second designer joined and I brought him into the system. He worked in his own file and left after three months. So the system was never really shared between two designers. I learned that files and tokens are not enough: a system also needs a short way in for a new person, and I had not written one.
Storybook
I still think developers need one live page with every component in code. I keep raising it. The team has no time, and so far I have lost this one.
next
what I learned, and what’s next
- Start small. A system that grows from screens already in work is easy to say yes to.
- Name things by their job. One colour with one name looked simpler and cost more. A name for each job is what made the code readable.
- Next: a way in. One page that a new designer or developer can read in ten minutes and start using the system. Then Storybook.
