A workflow window with three nodes: Record is created, Enrich from People Data and Send welcome email.

Overview

The library looked fine until I counted what was typed by hand.

A B2B workflow product asked me to reorganise its Figma design system before a React component library was built on it.

  • 757, radii typed by hand
  • 278, spacings typed by hand
  • 0, paddings, gaps or radii on a token
  • 3, naming conventions at once
The Companies table with the last-contact columns in focus.

The records table

Design system audit · Product

Every cell is one TableCell. Its height is bound to the control scale, so every row in every view matches.

A Save this document dialog with a sidebar, a segmented control, a select, a search field, a table and two buttons.

Five layers, one direction

Design system audit · Read me

A layer may only use the layers above it. This dialog is built only from existing components; no new geometry was drawn for it.

Audit

Key finding: not a single padding, gap or radius was bound to a token.

Every rule in the new Read me names the place where the file already broke it.

The Ask AI panel: a question, an answer with linked companies, a follow-up and the input bar.

One name per thing

Design system audit · Read me

Two ChatBubbles sets became AI/Chat Bubble, and three chat buttons became AI/Chat Button.

A notification card in its unread state: Workflow finished, Person is Created ran on 1,240 records and completed without errors.

Property names are prop names

Design system audit · Read me

state=unread arrives in code exactly as named. It swaps the surface and border to the accent pair, so the signal survives greyscale.

Rebuild

Solution: rebuild one screen from tokens and measure both versions the same way.

Every number was counted from the file, not estimated.

  • 100%, colours on tokens, up from 75%
  • 22, local components, up from 0
  • 0, external components, down from 132
The rebuilt Settings screen: workspace picture, name, domain, support and danger zone.

Measured, not estimated

Design system audit · 2026

The rebuilt Settings screen. Colour, radius and spacing are 100 percent bound to tokens, and nothing is typed by hand.

Handoff

Every value has one name, in Figma and in code.

51 colour tokens make the public API, and nine components with 116 variants keep their exact Figma property names in code.

The semantic step of the colour chain: background/accent/solid, pointing to accent/9.

One name from Figma to code

Design system audit · Handoff

A colour resolves in four hops and only the last is for use. Property names stay exactly as they are in Figma.

Outcome

Done now means it survives a theme change, a breakpoint and a code export.

Most components had only ever been seen in one mode, so the checklist ends with Light and Dark.

An expanded usage card: context window, usage reset, and token counts for the last message and the conversation.

Definition of done

Design system audit · Read me

Seven checks before a component counts as finished. The last one is Light and Dark.

Reflection

What I learned

Put the broken case next to the rule. A rule with its own counterexample is much harder to skip.

Name things for the code, not the canvas. A Figma property name travels straight into a React signature.

Notes

Leave a note on this post. It shows up right away.