Designing in code: the prototype · 2026
A prototype in code that our whole design team now designs in
Figma showed how things looked, not how they behaved. So in Jan ’26 I started teaching myself to code by rebuilding our product with AI. It grew into the place our design team designs, reviews and hands off.
01 · Problem
Figma showed how it looked, not how it behaved
Figma is great at the look. You can draw every state, every variant and every screen size.
But you can’t click through a flow with real data in it.
So what shipped often didn’t match the design, and getting an idea in front of a PM or a user meant waiting for an engineer.
02 · Exploration
First, I tried to automate Figma to code
I tried to automate the path from design to code at every level of our design system, from tokens up to QA.
I set up an AI agent with our coding rules. It linked our Figma components to the real code, built new components about 95% the same as the engineers’, and built screens from our real components. Token sync needed Figma’s Enterprise plan.
It worked. Engineering just didn’t have the time to take it further.
So I stopped waiting. If nobody had time to build it, I’d learn to build it myself.
03 · Decision
So I learnt to code and built it myself
With all the noise about AI, I wanted to actually learn to code and ship on GitHub. So I started from scratch, the way a real product is built: on our design system, responsive, light and dark, with motion.
My first commit was in Jan ’26. In the last six months alone I’ve made 729 contributions.
04 · Insight
Real data is what made it stick
Then I shared a prototype for one of our most complicated projects.
And people loved it.
PMs and engineers could click through the edge cases, try different variations and see the real thing, not a picture of it. Soon other designers wanted their projects in it too.


05 · Decision
I chose guardrails over speed
More people in meant more ways to break it.
So we put guardrails in early: a rulebook that keeps every AI-built page on our own components and tokens. Anyone can contribute without drifting off-brand.
the cost: weeks at the start, when AI was far less reliable.
06 · Decision
I chose to teach the team, not build for them
A rulebook is useless if nobody can build. Most of the team had never touched code.
So I ran sessions, paired with people one by one, and wrote a doc on building with AI: what AI is, Claude or Cursor, Git, and your first pull request.
the cost: a lot of calls and a lot of pairing.

07 · Decision
I chose one shared prototype over many
Once people could build, the next question was where.
Instead of a repo per project, every project lands in the same prototype, on the same components. Because everything’s connected, handoff and design QA happen there too: engineers inspect the real page, and we check their build against it.
the cost: shared code needs a review before anything merges.
08 · Process
Figma to explore, the prototype to prove
With everyone in one place, the way we design changed.
Figma is still where we go wide. A prototype is one direction at a time, so we explore in Figma, then build the pick with real data, states and motion.
09 · Process
Try every option in the prototype
We also use the prototype to experiment: different layouts, colours and content, and every edge case we can think of.
Seeing them side by side on real data is how we land on the final design. It’s much easier to see what works where.
10 · Result
Designing ahead of production
Production shows what customers have today. The prototype shows where we’re going, on the same components, so engineering can pick it up when it’s time.
By Oct ’26 the prototype had 400+ pages across 15 product areas, and the whole design team builds in it. A feature now goes from kick-off to a working prototype in as little as a week. Side effect: I now ship small fixes to our frontend too.