Case study · Agentic design system · 2026

One design system,
from raw screens to working code

Horizon Stay — a UK holiday-home booking product, shipped on one system.

Horizon is a design system proven by shipping a guest web app, an iOS app and a staff back office on top of it. A crew of seven AI agents built, tested, shipped and documented it, while I made the design and system decisions.

Role
System architect & product designer
Timeline
3 Sep – 23 Oct 2026
Tools
Claude, Figma, Storybook, Airtable, Astro
Platform
Web · iOS · Back office
Scope
23 components · 179 tokens
Horizon Stay guest web home screen
Horizon Stays, the guest web home, built from Horizon components and tokens.
01

Overview


The question

Can one design system carry a product from raw screens to working code without design and build drifting apart?

The starting point

Horizon Stay is a UK holiday-home booking product with a guest website, an iOS app and a staff back office. I started from a raw master file with about 130 guest screens and 82 back office screens, with no shared components and no naming.

What was going wrong

The same button, drawn many ways

Each screen had its own version of the same component, so one button looked different from one page to the next.

Happy paths only

The designs showed the success case and left out the failure states that users run into.

No link to code

Nothing tied the Figma file to the code that had to match it.

My role

System architect, process designer, product designer and builder. I also directed a small crew of AI agents for the repeatable work.

02

How I built it


I audited the raw file first (11 audits), then built tokens, then components, and only then the product. Each step left evidence that the next one could read.

Diagram of the path from the raw file to a published system and product
The path from the raw file to a published system and a product. Each step leaves evidence the next one reads.
Decisions behind the order
DECISION
WHY
Tokens before components
Hardcoded values cannot be themed or kept in sync.
Figma is the source of truth
Tokens export from Figma as JSON, and the build follows them.
One component per Figma node
Props are named like Figma, so there is no lookup.
Build up, never sideways
Organisms compose molecules and atoms, never the reverse.
A literal needs a written ruling
A value with no token is a gap to record, not a number to round.
Status comes from evidence
A typed status drifts. A link or a test row does not.
The builder never checks its own work
The engineer builds, QA tests and the PM audits. Nobody grades themselves.
Foundations

Colour, type and spacing are tokens before anything else. Components never use the core palettes directly.

Figma variables export as JSON, and the build reads that file. It writes the CSS variables for the web, plus iOS Swift and Android XML from the same source, so the three platforms can't drift apart.

179
tokens in total
50
semantic colour tokens redeclared for dark mode
8
core colour palettes, steps 50 to 900
10
composite text styles, built from Inter
The eight core colour palettes, steps 50 to 900
Colour: the eight core palettes.
Semantic colour tokens in light and dark mode
Colour: semantic tokens in light and dark.
Ten text styles from display to caption
Typography: ten text styles from display to caption.
Spacing, radius and elevation scales
Spacing, radius and elevation scales.
Components, in three layers

23 components, one per Figma node. Each one has a story for every state and a documentation frame built from the same template.

6 organisms Compose molecules and atoms
8 molecules Compose atoms
9 atoms The smallest building blocks
Figma Button component page with every variant and state
Figma: the Button page, every variant and state.
Figma Card component page
Figma: the Card page.
Figma Table component page
Figma: the Table page.
Figma Calendar component page
Figma: the Calendar page.
Figma Utility page with the documentation frame template
Figma: the Utility page with doc frame template, status badges and annotation kit.

Storybook: every component, every state

Storybook shows each component on its own page, with a story for every state and live controls, so you can change a prop and see the result. It's the quickest way to check how a component behaves before you reuse it.

Open Storybook →

One naming rule

Every token follows --{category}-{role or scale}. A Figma variable and its CSS property share one name, so a token reads the same in design and in code.

One build, three platforms

The same build writes CSS, iOS Swift and Android XML. Dark mode redeclares only the semantic colour tokens, so components never change.

03

The agent crew


Horizon is built, tested, shipped and documented by a small crew of seven AI agents, directed by me. Each agent has one lane and one job. The decisions stay with people: design sign-off, rulings on edge cases, the version tag and the npm publish.

The agent crew loop, from the original Figma board
The agent crew loop, the original board (Figma: Agent Crew and Registry).

The one rule

Agents never message each other. They hand work over through the Airtable registry, using evidence: a link, a test row or a commit. Status is a formula over that evidence, so no agent can type “done”.

Seven agents, one lane each

Engineer

Builds or repairs one component from one Figma node, and owns the token pipeline. Never tests its own work.

QA

Tests every variant and state against Figma, and writes Passed or Failed with a fix an engineer can act on. Never fixes.

DevOps

Merges and deploys a component once QA has passed it. Never changes anything after QA.

Doc generator

Writes each component's intent file and builds the docs site. Never invents intent content.

Release

Runs a release end to end, from preflight to a publish dry run. It proposes the version and never decides it.

PM

Audits the whole registry from outside and reports every row where evidence and status disagree. Read-only on purpose.

Token runner

Runs the token build and reports the raw output. No analysis, no editing.

Diagram of the agent crew roles and the skills each agent reads
Agent crew: roles and skills. A dot means the agent reads that skill first.
How one component moves

Each hand-off reads a status and writes the evidence that moves it on. Nothing moves forward on a promise.

Designer
Engineer
Staging
QA
DevOps
Docs
Release
Row reads To-do
Signs off the Figma node in Design.
Commit recorded
Builds the component on a branch.
Ready for testing
Storybook is deployed and the link is written.
Passed or To be fixed
Tests every state. A failure goes back to the engineer.
Completed
Merges and deploys production Storybook.
Docs link recorded
The intent file is written and the docs page is built.
Released
Reviewed, then cleared for release.
Nine shared skills

Each skill is a playbook the agents read before they work, so two agents never invent two procedures for the same job.

registry build test finding-format security-check component-intent astro-page release-review sweep

The release review checks seven gates and six intent-file checks before a component's name goes into a public version. Its own advice: “Expect Blocked on a first run. A review that passes everything first time isn't reading.”

What surprised me

  • Spawned agents cannot open a browser, so I do the “watch it render” step myself and write those links.
  • The engineer refused to write a staging link on my say-so. It was right: only whoever opened the page can vouch for it.

What stays with me

A decisions.md file holds my rulings on findings that aren't defects, and only I write in it. Sign-off, the version tag and the npm publish stay with me, so no agent ships an irreversible step on its own.

Diagram of how the agent board connects to Airtable
How the board connects to Airtable: who writes which evidence, and the status it produces.
04

One registry, one source of truth


Every step writes its evidence to one Airtable base, Horizon Design System. A component's status is worked out from that evidence, never typed in.

23
components, each with its own registry row
4
links per component: Figma, staging, production and docs
328
staging test rows, every one passed
Airtable dashboard of 23 components grouped by layer
Airtable overview: the dashboard. 23 components grouped by layer, with design and dev sync, development status and design status.
How status is worked out
EVIDENCE
STATUS
Failed test, re-test pending
Fixing
Failed test
To be fixed
Docs link, review and a Cleared verdict
Released
Production Storybook link
Completed
Staging tests present
To be deployed
Staging Storybook link
Ready for testing
Figma link and design marked Done
To-do

A failure outranks everything below it, so a released component that fails a re-test drops back to To be fixed.

Airtable Components table with the Figma, staging, production and Astro links
Airtable, Components table: the Figma, staging, production and Astro links for every component.
Airtable Components table with design, development and synchronisation status
Airtable, Components table: Design, Development (Released), Synchronization % and Commit.
Storybook testing report with 328 stories, every one passed
Airtable: the Storybook testing report. 328 stories, every one passed.
Airtable Staging Testing table with one row per check
Airtable, Staging Testing: 328 rows, with notes such as “NOT A DARK PASS” where a check could not be fully done.
05

From code to published


A finished component moves out in a fixed order. Each step is recorded in the registry, and a person makes the final call on release.

Tokens build→Components bundle into three entry points→Staging on Storybook→QA passes→Production Storybook→Astro docs site→Reviewed release, npm
Docs site page for the Button component
A component page on the docs site: usage, variants, accessibility, props and tokens.
Storybook Button page with every state and live controls
Storybook: every Button state with live controls.

Staging and production

Storybook runs on Vercel, and every state is a story and a test row. Production only follows a QA pass, and a security check scans the build for secrets first.

Docs and release

The docs are an Astro Starlight site with one page per component, each linked back into the registry. Every release is reviewed first, then I tag the version and publish to npm.

06

Reuse it: docs, Storybook and code


Horizon is built to be reused, not just admired. Each component has a documentation page, a Storybook page and a place in the source code, so a designer or developer can check a component and use it the same way the product does.

Documentation

The docs are an Astro Starlight site with one page per component. Each page covers when to use the component, when not to, its accessibility notes, its props and the tokens it uses. The text comes from an intent file for each component, which the doc generator writes from the Figma documentation and the code. It never invents product rules.

Read the docs →

Storybook

Every component in every state, with live controls for its props. Use it to try a prop, copy the exact usage, and check a state before you build with it.

Open Storybook →

GitHub

The source code, the token build script and the docs site source. Read how the tokens are built, or look at the code behind each component.

View on GitHub →
How to reuse a component
  1. Read the component's docs page to see when to use it and which tokens it needs.
  2. Open its Storybook page and check the state you need.
  3. Use it exactly as Figma shows it, with no restyling and no wrappers.
  4. Style it with tokens only. If a token is missing, record the gap instead of hardcoding a value.

The package is also published on npm as @layerbasesystemic/horizon-design-system.

07

Using Horizon in the product


A design system proves itself in a real product. These are the rules I followed when I built with Horizon.

  1. Import tokens, then package styles, then the app reset, in that order.
  2. Audit and map every Figma instance to an export before building.
  3. Use a component exactly as Figma shows it. No restyling, no wrapper.
  4. Style with tokens only. No hardcoded values and no Tailwind.
  5. Build gaps locally from tokens, and record each one for the system owner.
Guest web

Built from Horizon Card, Chip, Checkbox and Dropdown, with the failure states designed in.

Guest web search results built from Horizon components
Web: search results built from Horizon Card, Chip, Checkbox and Dropdown.
Guest web booking screen showing a price-changed message
Web: a negative state. The price changed while booking.
iOS app

The same components and tokens, carried over to a native app.

Figma overview of the iOS prototype with 122 screens in one flow
App: the iOS prototype in Figma, 122 screens as one flow.
Back office

A staff tool built from the same system, including its sign-in error state.

Back office dashboard with occupancy, revenue and attention items
Back office: the dashboard, with occupancy, revenue and what needs attention.
Back office sign-in screen with a wrong password message
Back office: a negative state. Wrong password on sign-in.
08

Timeline and roadmap


The project ran from 3 September to 23 October 2026. The roadmap is split into what is happening now, what is next, the app system, and what comes later.

Project timeline from 3 September to 23 October 2026
Project timeline, 3 Sep to 23 Oct 2026.
Now
  • Tokens for sizes and widths are still hardcoded on 17 components.
  • Reconcile Figma colour variables with the token build.
Next · 0.4
  • Footer, Toast, Notice, Accordion, Rating, Timeline, Tabs and Pagination.
  • Button disabled and loading states.
  • More icons.
App system
  • Mobile stepper and calendar.
  • Tab bar and sticky bottom bar.
  • iOS status bar as a component.
Later
  • Dark theme in the product.
  • Back office actions back to the guest side.
  • An SSR decision.
  • End-to-end tests.
09

Results and lessons


23 of 23
components released
100%
synchronization between design and code
328 of 328
staging tests passed

The web build passes typecheck, lint with accessibility rules, 398 tests and a production build.

Each component passed QA and got a production Storybook link before it could be completed. It was released only after its docs link was in place and the release review cleared it.

What I'd tell my past self

  1. Audit before you build.
  2. Design the unhappy paths. Trust is won or lost there.
  3. Make status come from evidence.
  4. Separate the builder from the checker.
  5. Keep a human on the irreversible steps.

Thanks for reading.

Everything in this case study is evidence for one claim: a single design system can carry a product from raw screens to working code.

Hsu Yee Mon (Mavis) · UX/UI Designer
Next project
Government Digital Service →