NDA note for the case page: "This work was done under NDA. The product, client and real screens are not shown — every example below uses a fictional demo product."
About
Instead of replacing a broken design system, we repaired it — then made every component and every page self-describing, so engineers could turn Figma pages into on-system production code with Claude Code, fast.
Repair the system once, then every page flows to code
The design system is repaired and documented once; after that, every page follows the same path — built as a component, described, wrapped in a handoff frame and turned into code with Claude Code, with the system's rules travelling all the way.
1️⃣
Repair the system instead of replacing it
We seriously considered buying a new design system. I argued for fixing the one we had.
Why: the library itself wasn't the problem, how it was used was. A new system would arrive with the same missing rules, and engineering would have to migrate the whole codebase.
Trade-off: a slower, less glamorous clean-up up front, and the discipline to finish it.
2️⃣
Fix colour roles theme by theme
I audited where every colour was used and mapped each one back to the correct theme token: light screens use only light-theme roles, and every role has its dark-theme counterpart.
Why: without this, every new page kept copying the mistake into Figma and into code.
Result: the light theme became consistent, and dark mode became possible instead of a rewrite.
3️⃣
Make every component self-describing
Each component got a description inside Figma: when to use it, which variants exist, which ones never to use, and which colour roles it takes.
Why: the rules now live exactly where designers pick component and where an AI tool reads them.
Trade-off: descriptions are part of the system now; every change to a component includes updating its description.
5️⃣
Turn pages into components, with behaviour attached
5️⃣
Standardise the package with an AI skill
Consistent handoff: every page ships as a described component in a handoff frame, in the same format. The light theme is consistent again, and the dark theme is complete and in use.
Consistent handoff: every page ships as a described component in a handoff frame, in the same format. The light theme is consistent again, and the dark theme is complete and in use.
Fewer questions: engineers rarely need to ask how a page behaves — the component and page descriptions answer it.
Fewer review fixes: pages match the design and the system more closely on the first build.
Faster delivery: pages are built about 30–50% faster, by the team's estimate.
Reusable: the method transfers to any product with a design system — only the rules file changes.
AI didn't replace the handoff conversation — it moved it earlier. Writing the rules down precisely enough for an AI to follow forced me to make implicit design decisions explicit, and that made the system better for humans too.
Next, I'd [connect the workflow directly to Figma so annotations are generated in the file, and track how many review fixes it prevents — або твій реальний наступний крок]