← Back to work

Foundation Color System Redesign

Design SystemAccessibilityAPCA
In a nutshell: Reconciling a large enterprise design system's colour and token structure into something simpler and more standard, validated against both APCA and WCAG, so designers, developers, and AI agents can all consume it reliably.

The problem

The colour and token system at the core of a large enterprise design system had grown modern but overly complex, and the cost showed up everywhere: long onboarding for new team members, friction exporting and importing tokens with external tooling, and little visibility into real component and token usage. Three competing tier vocabularies (muted / default / emphasis versus subtle / medium / strong versus flat / nested) made the system hard to reason about. Underneath it all, contrast pairings had been chosen by eye: WCAG's ratio model catches many failures, but it does not reflect how the eye actually perceives contrast, especially for light text and non-text elements like borders and icons.

Why it mattered

Complexity was blocking the workflows the system needed to support next. Inconsistency between design and code, plus a structure that resisted reliable automation, made programmatic use by AI tooling and less design-fluent contributors unpredictable. It also held back higher-level work: patterns, tables, and governance. To make the drift visible rather than anecdotal, I produced a cross-source audit, a system review that turned silent inconsistency into ranked findings: APCA contrast failures in both light and dark themes, the three competing tier vocabularies, and namespace inconsistencies where the same semantic role carried different values across sources.

My role

I own the static colour token values, the colour documentation, the migration playbook, and a validation study that checked whether designers can actually consume the model (covered as its own case study). I contributed to the broader token variable architecture that fixes the naming and emphasis model. I work in code, treating accessibility as a design decision rather than a compliance step bolted on at the end.

The direction: reconcile, don't rebuild

The agreed direction was to keep what works and change the structure. Three moves follow from it: decouple typography, spacing, and corner radius from colour so each can evolve on its own; consolidate colour on a single static, semantic model and drop the redundant dynamic set; and expand the static colour scale, since the existing step count wasn't enough to cover real use cases. How the expanded scale reaches consumers without breaking their files is a migration problem, covered in a separate technical case study.

APCA and WCAG together

The foundation is validated against both. WCAG stays as the compliance baseline every pairing still has to meet, and APCA (the Accessible Perceptual Contrast Algorithm, a candidate method explored for WCAG 3) is the perceptual check the ratio model misses. APCA scores contrast the way perception works: it accounts for text weight and size, treats light-on-dark and dark-on-light differently, and covers non-text elements, so light and dark ramps are retuned independently because it scores them differently. That let me add a dedicated contrast level for non-text separation (borders, dividers, icon plates), and it suits a token system where the same colour role has to hold up across themes, weights, and component states.

Aa Text on fill text/on-emphasis-accent
Aa Text on tint text/on-default-accent
On-context pairings. Text and icon colours are pinned to their fill, so every pairing has known APCA and WCAG scores instead of being chosen by eye.

The emphasis-tier model

To kill the competing vocabularies, the redefinition settles on a single emphasis model mapped onto the palette, work I contributed to through the token variable architecture. Component emphasis (high / medium / low) maps to non-interactive emphasis / default / muted, which in turn maps to fixed palette steps, and the on-context text and icon colours are pinned to their own steps so contrast is predictable wherever a role is used. One model, one vocabulary, one place to reason about it.

Layer 1

Primitives

Raw scale, e.g. neutral.7. Rarely touched.

Layer 2

Colours

Named ramps: accent, neutral, danger.

Layer 3 · pick here

Semantic

Purpose-based: text/primary, background/surface.

Three layers. Primitives feed named ramps feed semantic roles. Product work only ever references the semantic layer, which resolves per theme and density.
RoleMutedDefaultEmphasis
neutral
accent
info
success
warning
danger
One vocabulary across every role. Each semantic role resolves to the same three emphasis steps, replacing the three competing tier vocabularies. Values shown from the light theme; exploratory and validated against APCA in the generator.

Evidence: generated and checked, not eyeballed

Colours are not hand-picked. The kept foundation includes an APCA-driven palette generator that computes the ramps, applies the emphasis-to-step mapping, and reports the contrast level of each pairing so a failing combination is caught before it becomes a token. My work here was refining and expanding the static colour token values: growing the scale past the point where it was no longer enough, and reusing existing values where possible. Alongside it, I proposed the gaps the scale should still close: a dataviz palette, missing hover/active steps, and guidance for non-button clickables like cards.

Decisions and trade-offs

A design system's colour truth tends to live in several places at once: the token source, the build packages, and the design-tool libraries. That spread is what the cross-source audit measured, and what the reconciliation work is meant to close. Consolidating on a single open, portable token format reduces vendor lock-in rather than deepening it, and makes usage finally measurable; from here on, any divergence between exported tokens and the design file is treated as a bug in its own right. Nothing is edited in place: a renamed or reordered token would cascade through every consumer, so the reconciled variables ship alongside the current ones, the old set marked unmaintained rather than deleted, and components migrate in phases rather than all at once. The exact value-preserving migration method is covered in a separate technical case study.

The documentation is a deliverable

A model is only consumable if people can read it, so I wrote the full foundation colour documentation: intro, getting started, palette, reference, usage, and migration guidance, plus a verification script and a supporting reference component. The usage doc carries worked examples (primary button, destructive button, selected item, status banner, link, focus ring) and a "mistakes that are easy to miss" section, so a designer or developer chooses by intent and known contrast rather than by eye.

Outcome

The structure is the accepted direction, and the static colour scale and documentation are built. Whether the model holds up with the designers meant to use it, not just in theory, is the subject of a dedicated validation study, covered as its own flagship case study. Public release of the full reconciled token set is still in progress.

Related: the usability study that validated this model with real designers and the token migration playbook that ships it without breaking consumers.

More projects