System · BELLA · open source
A design system people trust and AI can build with
BELLA is my open design system, and it runs the site you’re reading. This page shows how I make one: who decides, where AI helps, and what stops drift from shipping.
newSea cottage★ 4.92
2 rooms · 64 m² · 5 min to the beach
newSea cottage★ 4.92
2 rooms · 64 m² · 5 min to the beach
- radius/card 12
- radius/card 3
- 7 stepsA human at every one.
- 25 checksAny one of them can stop a merge.
- AAAText contrast, in both themes.
01Why it matters
It looks right. The code says otherwise.
Same prompt, same agent. Without documentation it fills the gaps with guesses, and the guesses look almost right. You only see them in the code.
newSea cottage★ 4.92
2 rooms · 64 m² · 5 min to the beach
newSea cottage★ 4.92
2 rooms · 64 m² · 5 min to the beach
With BELLA’s contract
›prompt"a booking card for a rental"
The agent read the contract: ListingCard, the panel surface, the md radius, and the primary Button.
<ListingCard // contract surface="panel" // panel surface radius="md"> // md radius … <Button variant="primary"> // primary Book a visit </Button></ListingCard>
- ✕ custom div
- ✓ ListingCard
02What I tried
The only one of the three that can say no.
03How a component gets made
A human at every step, AI where it helps.
My workflow, adapted from TJ Pitre’s context-based design systems lifecycle and run for real on BELLA.
- Me: Intent.What it’s for.Figma · audits I start with what the component is for: its job, its states, and the words we’ll all use for it. Claude helps me synthesise the research and audits so the decision is grounded.
- Claude: Synthesises.The research and audits.
- Me: Tokens.Values first.tokens/
bella.json Every colour, space and type size is a token before it’s a pixel. One build turns the token source into CSS, JSON and the Storybook theme. - Me: AI draft.I review every line.AGENTS.md Claude Code writes the first draft against AGENTS.md, BELLA’s rulebook for machines: token-first, the accessibility bar. I review every line.
- Claude: Writes the draft.Against AGENTS.md.
- Me: Pull request.Context for review.screenshots The why goes into the PR: what changed, what it replaces, and screenshots in both themes. Reviewers shouldn’t have to guess.
- Claude: Opens the PR.Never merges.
- Me: The gate.Standards, tests, a11y.npm run gate One command runs it all: tokens, contract parity, visual snapshots and accessibility. Nothing merges until it passes.
- Me: Release.Versioned, readable.Changelog · Storybook Versioned with a changelog and documented in Storybook, so people and AI tools can read what each component promises.
- Me: Product.Shipped at fidelity.sync:bella The site you’re reading. What ships is what the system promised, in both themes, and feedback starts the next round.
Product. The site you’re reading. What ships is what the system promised, in both themes, and feedback starts the next round.
04Try your brand
Bring your brand. The system decides what ships.
Each brand brings an accent, a corner and a density. The card follows, and the gate checks every choice live. Some brand colours won’t make it, and it tells you why.
newSea cottage★ 4.92
2 rooms · 64 m² · 5 min to the beach
The gate · BELLA✓ ships
Button label on the accent9.01:1AAA
The accent’s edge on the card3.58:1≥ 3:1
Body text18.73:1AAA
Muted text7.93:1AAA
Every pair clears its bar. It ships.
BELLA · ✓ ships. Every pair clears its bar. It ships.
05Every merge
A system that can’t refuse is a suggestion.
So I built a gate. Colour is one check of twenty-five; every change walks this path, and any one of them can stop it. Here are the two cards from the start of the page.
Written without docs · write
Written without docs · write. Without docs, the agent writes the card with four guesses: a custom div, an invented grey, an 11px radius and a 13px label.
06What got in the way
Everything passed and mobile bugs got through.
- 01
A bug passed every check.
At 1024px the nav sat over a section heading, after a merge where all the checks were green.
- 02
The gate got slow.
It grew to 25 checks; a full run went from about 10 to about 25 minutes.
- 03
No second reviewer.
Working solo, nobody else looked before it shipped.
Next: screenshots before CI. And a number: how well does an agent actually build with BELLA?
07Measured
My first agent file made the agent worse.
I gave an AI agent the same 10 interface tasks, three ways, and scored what it built from 0 to 100: did it use BELLA’s components and tokens, is it accessible, does it compile, is it good. The tool is the open-source Open Design System Benchmark (opens in a new tab), one run each.
task passedneeds reviewfailedno result
Why. The first file was written for me, the maintainer. On five of ten tasks the agent ignored BELLA altogether and built its own, copying BELLA’s colours as raw hex. Rewritten for the people using BELLA, with every component in one import, it used BELLA on nine of ten and the failures went from five to one.
08Accessibility
More than contrast. Built in, not bolted on.
Contrast is the easy check. These are the other six BELLA holds itself to, on every component, before anything merges.
WCAG 2.1.1 · 2.4.7Every control is reachable with Tab and shows a visible focus ring, separate from hover.
checked by audit:axe · keyboard pass by handWCAG 1.4.1Status always pairs colour with an icon and a word, so it survives colour blindness and greyscale.
checked by contracts · visual reviewWCAG 2.3.3Every animation respects prefers-reduced-motion and shows its finished frame instead.
checked by reduced-motion pass by handWCAG 2.5.8Interactive targets are at least 24px, and 44px on touch, so fingers and shaky hands can hit them.
checked by contracts · 390px screenshotsWCAG 4.1.2 · 1.1.1Icons, diagrams and toggles carry real labels. Every diagram on this page describes its story in words.
checked by audit:axe · audit:orderWCAG 1.4.10 · 1.4.4Layouts reflow to 320px and survive 200% text zoom with no sideways scroll.
checked by audit:frame at 390 · 200% zoom by hand09Self-assessment
Where the system honestly stands.
Scored on zeroheight’s six-axis maturity model, out of four, in September and now. A team of one can only get so far.
- FoundationsTeenageTeenage
tokens/bella.jsonaudit:tokens - DocumentationGrowing↑ Teenage
AGENTS.md rewritebella.jsonllms.txt - GovernanceGrowing↑ Teenage
25-check gate in CIDECISIONSRULES - AdoptionV1↑ Growing
audit:reuseaudit:sync - MeasurementV1↑ Teenage
the benchmarkaudit composite 85.6 - AI readinessTeenageTeenage
contractsaudit:agents
Back to the card: 4 guesses to 0.
Same prompt, same agent, the same card from the top of the page. Read from BELLA’s contract, it passed all 25 checks and shipped.
newSea cottage★ 4.92
2 rooms · 64 m² · 5 min to the beach
4 guesses: a custom div, an invented grey, an 11px radius and a 13px label
One language, three kinds of people.
- 01
Decisions that stick.
For designers
Tokens and contracts mean a choice made once shows up everywhere, in both themes.
- 02
No guessing.
For developers
The same names in Figma and code, a contract per component, and a gate that tells you why before review does.
- 03
Faster, without drift.
For product and leads
AI can draft safely because the system can say no. New brands are a token file, not a redesign.
This is how I’d start with your system.
An audit, one component through the whole lifecycle, and a gate your team owns.

