Fifteen years of building the layer underneath the product. This page is the architecture, the decisions behind it, and the ones I got wrong first. Client specifics are anonymised; token names here follow the conventions I use rather than any one employer's library.
Role
Product & interaction design
Scope
Tokens, components, documentation
Stack
Figma, React, Tailwind, Radix
Revision
Oct 2026
01The rule
Primitives, semantic names, component values.
A primitive is a fact about the palette. A semantic token is a decision about meaning. A component value is a local application of that decision. Product engineers work at the middle tier and nowhere else, which is what makes a rebrand a change to one file instead of a search across a codebase.
Tier 1
Primitives
Raw values. Named for what they are, not what they do. Nobody references these in product code.
color.amber.500
space.3
radius.md
Tier 2 — the only one engineers touch
Semantic
Named for meaning. This is where the argument happens, and where a rebrand or a theme is a change to one file.
status.uncertain
surface.raised
border.subtle
Tier 3
Component
A component's local binding to a semantic token. Lives with the component and changes with it.
badge.bg
row.border.active
Try it
Change the semantic token below. Three unrelated components move, and none of them knows what colour it is.
Button · primary
Badge · confidenceNeeds confirmation
Row · attention
Flange, 6 in.Matched against 3 historical lines
Review
02Decisions
What each decision cost.
A component library is the easy half. What separates one system from another is the record of what was refused and why. These are mine, including the one I had backwards to begin with.
Split, not variant
Estimating platform, manufacturing
One badge was covering four different asks
Problem
83 line items produced 52 flagged as needing a decision, all under a single "needs review" badge. Those 52 ran from a ten-second confirmation to an open-ended search across 24 candidate parts. The badge told an estimator nothing about the afternoon ahead.
Options
Add a severity variant to the existing badge, which was cheaper and would have shipped the same week. Or split the concept, which meant four counts, four renderings and a migration.
The call
Split it. A variant would have encoded urgency, and the real axis was effort. Each bucket now counts and renders separately.
What it cost
Extending the one component would have been cheaper and that is a fair criticism of the call. The migration touched every surface that showed a count.
Derived, not settable
Estimating platform, manufacturing
A control a user can always satisfy carries no information
Problem
Three separate controls could be satisfied without reading anything underneath them — a sign-off box tickable without opening the row, a bulk accept that cleared every row, and a page-level reviewed state that could be set by hand. Each produced a green, reviewed-looking state that meant nothing.
Options
Warn harder, which keeps the component simple. Or remove the affordance and derive the state, which makes the component depend on data it did not previously know about.
The call
Derive it. Row acceptance comes from each row's confidence, a bulk action carries its scope in its own label and the code holds it there, and the page-level state is computed from the rows and cannot be set directly.
What it cost
The component is no longer self-contained. It needs the row data to render honestly, which is a real cost in a library and the right trade here.
Meaning, not hue
Geospatial comparison platform
Semantic colour maps to meaning, which is why the palette caps at ten
Problem
Operators compare eight to ten entities at once in scatter plots. Categorical colour has to stay distinguishable at small mark sizes, for people who do not all see colour the same way, without implying an order that the data does not have.
Options
A sequential or gradient ramp, which is easy to extend and reads beautifully. Or a capped categorical set where lightness and saturation carry more of the separation than hue does.
The call
Categorical, capped at ten. Ramps were rejected because they imply a ranking the data does not have. Pure red–green pairings are avoided, and the set was checked under deuteranopia, protanopia and tritanopia simulations.
What it cost
Brightness separation helped under simulated colour-vision deficiency but nudged toward an implied order. Hue separation avoided the order and was weaker at small marks. I did not optimise for one; the documented trade-off is the deliverable. Blue-green and yellow-green stay failure-prone under tritanopia at small sizes.
Carried, not rebuilt
Consumer news app
A system that had to survive a merger and a rebrand at once
Problem
An existing style guide and component system had to stay usable through a company merger, a full rebrand and an Xcode integration, without a freeze.
Options
Rebuild on the new brand and migrate, or keep one system alive and move the brand through the semantic tier.
The call
Keep it alive. The brand change landed almost entirely in semantic tokens, which is the argument for the middle tier stated as plainly as I can state it.
What it cost
Months of two visual languages coexisting in one codebase, and a tolerance for looking inconsistent while the migration ran.
03Components
Two documented properly beats thirty listed.
The section most libraries skip is the last one: when not to reach for this.
Confidence badge
4 states · 1 size
Anatomy and states
Dot + label. The dot carries status.*; the label is never colour-only.
Confirmed — a person took the decision.
Needs confirmation — the system is unsure and says so.
Unknown — the system cannot establish the answer. Distinct from zero, and distinct from low confidence.
Conflict — two sources disagree. Never collapses into "needs confirmation".
When not to use it
Not for severity. If the question is how bad, this is the wrong component.
Not as a count. A badge over 52 items that split four ways is the decision logged above.
Not on a value a person has already overridden. The override is the state.
Scoped bulk action
Label is the contract
The rule
The label states the scope. "Accept 27 high-confidence rows", never "Accept all".
The code holds it to the number in the label. The count is passed in, not inferred at click time.
Zero scope disables. It does not hide, so the control stays where people expect it.
When not to use it
Not where the scope cannot be counted before the click.
Not for destructive actions. Different component, different confirmation.
Not as a convenience wrapper around "select all".
Naming
Pattern
Example
Why
status.*
status.uncertain
What the system knows, not how the designer feels about it. "warning" was rejected — the system is not asserting a problem, it is declining to assert anything.
surface.*
surface.raised
Elevation as a relationship, so dark mode is a remap rather than a rewrite.
border.*
border.subtle
Weight by intent. A border that separates and a border that groups are different tokens.
action.*
action.primary
Role, not colour. There is exactly one primary per view and the token makes that auditable.
04Colour
Why the categorical palette stops at ten.
Ten is not a design preference. Past ten, categorical sets stop being distinguishable at small mark sizes for a meaningful share of readers, and the honest move is to stop adding colours and change the encoding instead.
The optionsThree candidates, stacked to ten. Each set is shown at rising category counts, because a palette that reads well at three tells you nothing about how it behaves at ten. The failure point is the decision.In useAt the size it actually runs. Ten categories in a stacked bar is where a palette is tested, not in a swatch row.
Lightness over hue
Lightness and saturation vary more than hue does across the set, because that is what survives colour-vision deficiency at small sizes.
No ramps for categories
Sequential and gradient ramps were rejected outright. They imply a ranking the data does not have.
Checked, and still limited
Checked under deuteranopia, protanopia and tritanopia simulations — not with readers who have CVD, which is a different and better test I have not run.
05Governance
Contribution, exceptions, deprecation.
Getting in
A new component needs a case the existing set cannot express, not a case it expresses awkwardly. Awkward is a variant. Cannot is a component.
Exceptions
A one-off is allowed and written down as a one-off. The failure mode is an exception that quietly becomes a pattern because nobody recorded that it was an exception.
Getting out
Deprecation is the part I have done least. I split a component that was covering four different cases. I have not retired a whole surface, and I would not claim the experience.
06Where it runs
Honest scope.
Small numbers, stated as they are.
Current
AI data platform for manufacturingSemantic tokens over Tailwind on React Router 7 and Radix, across an estimating product and an after-service troubleshooting tool. Prototypes written in the repo the product ships from, so a component in a prototype is the component.
Founding designer
B2B research and intelligence platform, TokyoFirst designer on the product. I wrote its React component library and the documentation that went with it, which is still the piece of work I would point at first.
Carried
Consumer news appAn existing style guide and component system kept alive through a merger, a rebrand and an Xcode integration.
Tooling
Figma to codeFigma libraries with multiple modes, Code Connect, lint rules and Tailwind theme config as the hard guardrails. Claude and Cursor in the daily loop.
The system that went through the merger. States, specs and annotations in one sheet, from before variables existed in design tools — which is why the argument for a semantic tier is one I learned the hard way.
Design systems · architecture, decisions and limits · Oct 2026