Back to works

LUMEN

A component library and docs site that keeps a product team's design and code in sync

Role
Design system, front-end
Timeline
12 weeks
Team
Me + 4 engineers
Type
Build

1Setting up context

What we set out to solve.

Designers and engineers were shipping two versions of every button. One source of truth: tokens shared by Figma and code, components built once, and docs good enough that people stop asking in Slack.

The brief

  • 01

    The challenge

    Designers and engineers were shipping two versions of every button. Figma and the codebase had drifted so far that handoff meetings had become negotiations.

  • 02

    The goal

    One source of truth: tokens shared by Figma and code, components built once, and docs good enough that people stop asking in Slack.

  • 03

    Delivered

    Figma library, React components, Docs site, Tokens pipeline

My role

My role and the team

Client
Lumen Labs
Role
Design system, front-end
Timeline
12 weeks
Team
Me + 4 engineers

At a glance

The outcome, in numbers

  • 37 → 1

    Button variants in production

  • -80%

    Time spent in handoff

  • 2×

    Faster to ship a new screen

2Research

What we learned before designing.

Findings

What came out of it

  • UI inventory
  • Engineer interviews
  • Designer interviews
  • Codebase audit
  1. 1

    37

    slightly different buttons in production.

  2. 2

    6 hrs

    per week the team spent in handoff and 'which one is right?' threads.

  3. 3

    0

    shared tokens between Figma and the code.

“I don't trust the Figma file anymore. I just look at what's live.”

Engineer interview, E2

3Design decisions

What changed, and how it changed.

  1. Decision 01

    Tokens first, components second

    Tokens first, components second

    The problem

    • Colours and spacing were hard-coded everywhere.

    What we did

    • One tokens file feeds Figma variables and CSS; change it once and both update.
  2. Decision 02

    Figma props match code props

    Figma props match code props

    The problem

    • Variants in Figma didn't map to anything in code.

    What we did

    • Every Figma variant is named exactly like a React prop, so handoff is copy and paste.
  3. Decision 03

    Docs that show, not tell

    Docs that show, not tell

    The problem

    • Nobody read the old wiki.

    What we did

    • Each component page has a live playground, do/don't pairs and copyable code.

4Process

How it came together.

Timeline

  1. 01

    Discover

    Week 1–2

    Screenshot inventory of every component in production and interviews with both teams.

  2. 02

    Define

    Week 3

    Token structure, naming rules and the first 20 components to build.

  3. 03

    Design

    Week 4–8

    Figma library with variants that mirror the code props one to one.

  4. 04

    Build

    Week 9–12

    React components, the tokens pipeline and the docs site with live examples.

The system

Designed as one system

Colour
Type
Inter, JetBrains Mono

5Impact

What it changed.

  • 37 → 1

    Button variants in production

  • -80%

    Time spent in handoff

  • 2×

    Faster to ship a new screen

“Handoff used to be a meeting. Now it's a link.”

Priya Nair, Engineering Manager, Lumen Labs

6Reflection

Looking back.

I'd ship the docs site in week one with three components, not at the end; early adopters would have shaped it sooner.

→Keep reading

Next project

•02

BOOK A CALL

© 2026

LET'S BUILD SOMETHINGWORTH LOOKING UP TO

Tell me what you're building. Thirty minutes, no deck needed, and you leave with a plan either way.

BOOK A 30-MIN CALL