Matt KoziorowskiGet in touch

Case studiesSpaceliftDesign system

Spacelift’s design system, moved into code

Core colour ramps from the token repo, eleven steps each. Spacelift and Flows both build from this Core.

Summary

Code, Figma and the docs disagreed, and nobody could measure the system.

Role
Product designer. I made over 90% of the token commits and over 70% of the docs commits.
Team
Designers and frontend engineers in the design system guild
Timeline
March 2023 to now
Result
Figma is now rebuilt from the code, Spacelift and Flows share one Core, and the system’s health score went from 63 to close to 100.

Every component existed three times

Each component existed three times, in the code, the Figma library and the docs, and nothing joined them up.

The 2026 design system retro called the Figma library “unreliable as a source of truth”. Anyone new would take it at face value.

Moving the values into code, 2023 to 2026

The token repo is where every value lives. Core colours feed a set per theme, which feeds each component.

  1. purple-600#6036C9

    Core

    Shared by Spacelift and Flows

  2. --accentLightpurple-600Darkpurple-400

    Semantic

    Owned by each product, one set per theme

  3. .cta:hoverbackground: var(--accent)

    Component

    Owned by each product

  4. --purple-600: #6036c9;[data-theme='light'] {--accent: var(--purple-600);}

    CSS custom properties

    Compiled, then copied into the frontend

Spacelift’s token pipeline, traced for Light with this site’s own tokens.

In 2026 the Figma plugin that synced tokens was dropped. Only I understood it, and changes came from code anyway. Did we still need the repo?

  1. Decision 1

    Keep the token repo

    What we chose
    The token repo stays the one place values live, and Figma is rebuilt from the code.
    What we rejected
    Dropping the repo and editing the CSS variables in the frontend.
    Why
    The repo holds the mapping Figma needs, and a future mobile app could use it too.
Figma components rebuilt from the code
99%
September 2026

Docs that agents can read too, 2025 to 2026

In May 2026 the system wasn’t built for AI agents. An agent would pick a raw hex value or invent a component.

Now agents get one entry point, and 300+ tokens say when to use them.

Documented components and patterns
~90
In the docs repo

One Core for Spacelift and Flows, 2026

Spacelift and Flows each have their own UI code. In May 2026 I found that only about one in six similarly named components existed in both, and never as shared code. We paid to build and fix that UI twice.

My token contract is agreed. Both products share one Core, and each owns the rest.

  1. Decision 2

    Split the tokens at the Core

    What we chose
    One Core, and each product owns its semantic tokens and its component code.
    What we rejected
    A fork per product, or one set of semantic tokens forced on both.
    Why
    A shared Core keeps one palette, and a Core change reaches both products.

A weekly health check, 2026

Every call about the system was made on impression. In August 2026 I set up a health check that measures the code, docs and Figma library directly.

Every Monday it scores the system out of 100 and ranks the fixes. It started at 63. It’s close to 100 now.

Merging the eight colour vision themes, 2026

In September 2026, twelve themes were built, but only four reached users. The eight colour vision variants, over 2,000 token definitions, had drifted behind.

I rebuilt the product’s theme settings (contrast, theme, low vision modes and code colours) and merged that work, variants included.

All twelve themes are now merged into the product. Each of the four modes comes in three colour vision variants.

ModeDefaultProtanopia and deuteranopiaTritanopia
LightIn the productIn the productIn the product
DarkIn the productIn the productIn the product
High contrast lightIn the productIn the productIn the product
High contrast darkIn the productIn the productIn the product

What didn’t work

  1. Automated checks barely moved

    In September 2026, over 40 components still had no automated visual or accessibility check. The target was under 10.

What I do now

Design files follow the code, not the other way round.

Next: a roadmap for the coming months, starting with patterns shared across Spacelift and Flows.

  • --ground
  • --surface
  • --ink
  • --ink-2
  • --ink-3
  • --rule
  • --accent
  • --on-accent
  • --live

Hover or focus anything to read its tokens. Alt T toggles, Esc exits.Tap anything to read its tokens. Tap a link again to follow it.

Labels each element with the design tokens that style it, and shows the layout grid.