Design system, foundations to governance
Closing the gap between what shipped and what we drew
Components disagreed on size, spacing and type across two dashboards. Nothing was broken enough to escalate, so it lasted.
The QA number is the one I defend. Review used to mean checking every component against the file by hand. Now it covers flow and behaviour, about 130 hours a year back.
HTML to Figma for the live screens, a first pass with OpenCode, then my own review of all of it.
The automated pass missed things, so nothing went out unreviewed. It was still faster, and it caught patterns a page by page read would have explained away.

One interaction layer, named by role: rest 0%, hover 4%, pressed 8%, on each component’s own fill.
Context
Both dashboards share a Material UI base, but each grew its own conventions, and the Figma library described neither. The typeface was a paid licence with proportional figures, so numbers in tables never lined up. Spacing, radius and shadow had no tokens, which is where the soft, blurred cards came from.

Before. Hellix against Figtree on the same card: an open licence, aligned figures, and text greys that finally separate secondary from disabled.
Tension
There was no single failure. Each inconsistency was small and the cost only showed in aggregate: engineers rebuilt components that existed, designers picked values by eye, and I spent three to four hours a week checking whether what shipped matched the file. Frontend engineers sit in other teams, so all of this was side work in their sprints.
Insight
Neither side was a source of truth. Production had drifted, and the library described something that never quite shipped. So I ran it as an audit: production beside the file, closed item by item. Once the foundations were tokens, correctness became something a machine could check.
Two hundred small disagreements, none worth a ticket alone.
The other decisions, and what each cost
Leadership and ownership
- Getting every team onto itI pushed every product team to adopt the system, beyond the two dashboards it started from. A library only some teams use becomes the next source of drift.
- Auditing every releaseAfter development I audited each feature in a sandbox environment before release, so it shipped without design bugs.
- Getting a typeface approvedI mapped the system and made the case on licence cost, figures and text hierarchy. Nine leaders signed off.
- Absorbing a late reversalOur VP rejected the segmented control in development planning. I produced alternatives and tested them with other leads. The revision is better, and it cost a cycle.
- Pulling my own featureThe keyboard focus ring looked right in isolation and clipped in real layouts. I paused it rather than ship a broken accessibility affordance.
What shipped

Primitive, role, state, live. Hover the button and primary.dark lights up, press it and primary.strong does. Nothing skips a layer.

Button had the largest gap from best practice, so it became the proving ground for the colour system: three hierarchies, three colours, six states.
In a fast paced company with a lot of tech debt, Erdem always found a workaround. Sometimes an alternative design, sometimes more detail on how our product is structured. What he does best is provide solutions rather than become a bottleneck when times are hard.
More: the system underneath, agent readability, more screens and what comes next
The system underneath
Four layers. Components never reference a primitive.
- adjoeBlue and grey ramps
- Red, yellow, blue, green
- Type scale in Figtree
- Primary, error, warning
- Info, success
- Main, light, dark, strong
- Rest at 0%
- Hover at 4%
- Pressed at 8%
- Spacing tokens
- Radius tokens
- Elevation, redefined
The interaction and structural layers did not exist before. They are why a component declares its own states instead of an engineer deciding them per screen.
Built to be read by agents
Coding agents read the system as well as people. That was a goal from the start.
- Ask what it needs firstI ask the model how it wants to read a component. Where its expectations differ from our structure, our definitions are usually ambiguous.
- Fetch state, not screenshotsAn MCP connection pulls component states and specs into the codebase, so generated code references the system itself.
Foundations

The old ramp mixed cool and neutral greys with no rule, so two adjacent surfaces could disagree.

Five roles, four tones each, so no component derives a state colour on its own.

One overlay, 4% on hover and 8% pressed, holding up on every surface it sits on.

Spacing, radius and elevation. The blurred cards came from elevation that had only ever been approximated.

Two icon sizes, 16 and 24. Every other size was a source of misalignment.
Components, and the one I pulled

Segmented control, before and after our VP sent it back from development planning.

Part of the refactored set. Each shipped as a paired design and development task, checked in Storybook and a sandbox.

Why the focus ring is paused. Wrappers sit flush to component edges, so the ring clips inside dialogs and filter panels.
What comes next
Two threads open: the focus ring, waiting on a container fix, and agent readability.
Looking back
Two parts I would defend: the interaction layer, because engineers stopped inventing colours, and three hours a week back. The focus ring sits on the other side of the ledger. A ring that is sometimes clipped is worse than none.





ME
DÖ
P
UY