Miraee: A Design System for AI
How we got the AI to reuse our components instead of regenerating them

Before

After
Summary
We went AI-first to ship faster, and we did. But every screen the AI built made the design system a little worse. We couldn’t change how the AI works, so we changed what was around it: a rules file, a website it can read, and fewer things to choose from. In the new system, 4,250 hand-typed colours became zero, and 287 card components became one.
Team
- Shashank Sharma (PM)
- Harsha Arrimala (UI/UX Designer)
- Shubham, Raunak & Akhil (Engineers)
- Mridula & PC (Cross-functional Leads)
- Me (Lead product designer)
Platform
- Web
- iOS
- Android
Timeline
About a month in 2026
The problem
Where it started
It started with a search bar. I had designed one toolbar with the search, the filter and the view toggle built in, and the pages were not using all of it. Once I started looking, it was everywhere.






AI-first
Miraee is one product on three platforms: web, iOS and Android. We had one designer for all three, and three full-stack engineers. The company wanted speed, so we went AI-first.
Where this project steps in
Spread across web · iOS · Android
What the AI did
Every time the AI built a screen, it lost the context of what already existed.
A new button
It made a new button rather than find ours.The nearest colour
It copied a colour from the nearest file, even when that file was a mistake.The happy path
It built the happy path and nothing else.
Velocity and consistency
The company wanted velocity, and the AI-first mandate was not up for debate. The product needed consistency, and one designer could not police every screen on three platforms. The system had to work at the speed they were already going.
The goal
Make the design system the thing the AI reuses instead of regenerates, so the codebase gets leaner, faster and consistent across web, iOS and Android, without slowing the engineers down.
The audit
Two passes: source, then browser. When I went looking for our brand orange in the code, I found ten oranges. Ours was sixth.
What I counted
Hardcoded colours, three apps
~4,250
Card pages, no empty state
74 / 78
Body text failing contrast
57%
The same thing, built many times
Primary buttons
10 kinds · 163 hand-rolled













Status badges
36 styles · High is red and amber


















Search bars
20 pages · 6 own









Same mistakes everywhere. One fix.
Why it drifted
Two things caused this, and they fed each other: how the AI writes code, and how people worked with it. The bigger the circle, the more of the product it shows up in.
The AI
The people
Most numbers come from the audit. One comes from outside research: trust and checking, from Sonar’s State of Code survey.
Generated UI is only going to grow, so the fix had to work with the AI.
Strategy
If you can’t change the behaviour, change the environment.
An idea stolen from Atomic Habits. We couldn’t change how the AI works, and people didn’t want to do more work either. So we changed what was around them, so the right thing happens on its own.
Five moves
A rules file

One Markdown file with a list of all the components and how to use them. You give it to the AI along with your prompt.
A website the AI can read

117 pages in the repo, made from one rules file. The AI reads these instead of Figma.
Less to choose from

One typeface, fewer components, token names the AI can guess, and scales with no gaps to invent a value in.
Checklists

A screen is done when it has its states, uses only tokens and works at 500 rows.
Remove the wrong options

We deleted the 39 dead components, so the AI can’t copy them. What’s left is a correct example on every platform.
The same prompt, without and with the rules
Before. A prompt on its own
Build a trip card
Thinking
- No design system in context
- Opening the nearest file
- Copying the card in it
- Picking an orange, #FF5733
- Adding a shadow
- Skipping empty and loading
Result
San Francisco
Upcoming12 Nov 2026
A new card, one more to maintain.
After. A prompt with the rules
Build a trip card
- design-system.md
- CHECKLIST.md
Thinking
- Reading design-system.md
- Found Card, using it
- Colours from tokens only
- Reading CHECKLIST.md
- Adding empty, loading and error
- Checking 500 rows
Result
San Francisco
12 Nov 2026Upcoming
The shared Card, reused.
The test for everything: can the AI pull the right component faster than it can write a new one?
People kept forgetting the file
The first version depended on people. Anyone prompting the AI had to add the rules file and the checklist every time. When they missed it, the AI went back to copying the nearest code.
Didn’t work

Adding files to every prompt
It worked when people remembered. No matter how many times we said it, someone would eventually miss it.
Worked

Notes for the AI, above every page
The notes sit in the codebase itself, so the AI goes through them on its own whenever it works on a page. Nobody has to remember anything.
The fix had to work even when people forgot.
Three decisions along the way
Three other things did not go the way I had planned, and they taught me the most.
What I kept
Android dimmed every card except the one you tapped. Nobody had designed it. It became the standard everywhere.What I reversed
I had planned to delete the undocumented grey scale. The unofficial greys were the ones that passed contrast, so I kept them.What I did not build
Special handling for long lists. 500 rows rendered fine. Nothing sorted or paged, so I fixed that instead.
Results
The same audit, run on the new system.
Before and after
Colours typed by hand
4,2500
Card components
2871
Text failing contrast
57%0%
The same wall, one of each
Primary buttons
1 kind · 6 variants

Status badges
4 values · a dot and a word

Search bars
1 toolbar

What else changed
From pages to cards
Each part of a page is a separate thing, usually a card, and these fit into a responsive grid.From warm to neutral
Midway, we were asked to move to a neutral colour palette, so the product would feel modern and new.No more pictures
People were not adding pictures, so All Trips no longer depends on them.

Before

After
Both versions use sample data.
Impact
Screens went from days to hours.
Speed
2.5×
faster to build a screen. Days became hours.
Bugs
~60% fewer
Jira tickets about UI drift and visual bugs.
Load time
35% faster
page loads on web, once duplicate styles and dead code were gone.
We re-ran the audit at each milestone, against the same baseline. Alongside it we counted Jira tickets, and timed how long a screen took from handoff to merged.
Reflection
Designing for the environment
We stopped designing for one particular user and designed the environment everyone works in instead, people and the AI alike. The audit helped. Once everyone had seen the numbers, it became the obvious conclusion.
Prioritising workflow over aesthetics
Going from three fonts to one gave up some visual character. I chose that on purpose. How the team and the AI actually work mattered more than how rich any one screen looked.
What I would do differently
Track adoption from day one
The audit script should have existed before the first system did.Test with real data volumes earlier
Most lists were designed against six sample items. 500 rows would have shown the problem in week one.Decide how the system stays maintained before designing it
Manual token syncing between Figma and code is what caused the drift the first time.
The first design system assumed a human would come and look. The second one assumes nobody will, and that whatever is nearest will get copied. So we made sure the nearest thing was the right thing.