Creative AI, plain-code guardrails
- The problem
- AI screens drift off-system, and nothing tells you what changed or why.
- What I did
- Designed a loop of Explore, Tune and Ask, where every change is measured and every “no” comes with a reason. The rules live in plain code, so they don’t depend on the AI behaving.
- What came out
- A working tool you can try, 15 of 15 checks passing, and design systems that go in and out as JSON tokens.
Pen on paper first
My first version rated three boards each round with sliders, and the ratings meant nothing. These sketches are what I rebuilt it around: one focus screen, what changed, and a like or pass right next to the phone.


Cards, not sliders
Sliders make you know your answer upfront. Cards let you recognise it. Each card changes one thing, so a like or a pass is never unclear.
- ♥ keeps going in that direction. ✕ turns back with half the step, so it homes in like an eye test.
- ★ locks it, so the AI can’t move it later.
- No AI here. It’s instant and the same every time.


It says what it won’t do, and why
I asked it to make the fare the hero, turn the colour pink and drop the cancellation note, with only Type allowed to change.
- It made the fare the headline, using type only.
- No to pink: I’d locked the colours in Tune.
- No to dropping the note: it’s a required detail.
This is the part I care about most. It doesn’t quietly ignore a request.
Design systems in, design systems out
Import reads a tokens JSON file, like one from a Figma tokens plugin, and re-skins the screen while the layout and content stay. Pastel Pop fails contrast on purpose, so the studio fixed its secondary text from 1.5:1 to 4.6:1 and flagged it. My own style went out as “Shady Ride”, a JSON file that imports back to the same tokens.
15 of 15 checks pass
Each check feeds it broken input on purpose: a missing fare, an invented discount, two primary buttons, very faint text. Anyone can run them from How it works.
The AI decides
Which components, in what order, and names for each direction.
The code decides
The facts on screen, contrast of 4.5:1 or more, scope and locks, and measuring what changed.
Honest limits
One screen at a time, 13 components and 4 example screens. The AI’s output still varies, just only inside the guardrails. Next I’d add live sync with Figma variables, custom screens from a prompt, and applying a tuned style across a whole flow.