RU
Work/Design system

A design system AI understands

Recoloring the Dolphin{Anty} interface used to mean going through hundreds of files by hand. I built design tokens that connect Figma, code and Claude. Now one value change recolors the mockups and hundreds of places in the code at once, in light and dark themes

Role
Senior product designer: tokens, atoms, molecules, binding to code
Team
Art director, junior designer, developers
Timeline
September — October 2026
Status
In progress as of October 2026; the redesign wasn't released yet
1,211 placesin the code recolored themselves
2 filesinstead of 136 to change the accent color
20×fewer hard-coded colors in new code
Buttons in the “AI Design System” library
Buttons in the “AI Design System” library: eight variants, four states and two sizes
Context

Color hard-coded into hundreds of files

After the redesign the product gained a lot of new interface, and there are few designers. Much of the colors, sizes and radii were hard-coded as numbers. Any change turned into a search across the whole project.

What this looked like in practice: reducing the font size from 16 to 14 meant editing 191 files, and changing the radius from 4 to 8 meant 109 files.

What we needed

  • Design and code speak the same language and don’t drift apart over time
  • Light and dark themes without manually repainting every screen
  • A small team keeps pace with the product, and minor visual fixes don’t wait on engineering
Process

One vocabulary for design and code

  1. 1BaseWe took shadcn/ui and redrew it for Dolphin{Anty} with the brand purple
  2. 2Five layers of variables in FigmaFoundation (311), semantic (44), components (230), size (7), typography (80), each with light and dark modes. A component token references a semantic one, which references a base one, so one change propagates to all components and both themes
  3. 3Matching the codeWe aligned the palette in code with the Figma variable values, so every color in the mockups has a twin in code with the same meaning
  4. 4Claude in the repositoryTogether with the developers we set up the product code and opened it in Claude Code. The repository has a README and CLAUDE.md with project rules, and Claude is connected to Figma through MCP
  5. 5DocumentationWe started moving components to Storybook, so engineering and design share one living showcase

foundation 311

accent/500 · #8b5cf6accent/600

semantic 44

bg/brandtext/link

components 230

button/primary/bgalert/info/border

interface

Create profileTemplate saved

One value in foundation flows through semantic and components all the way to finished buttons and alerts

Variables in Figma
Variables in Figma: component tokens reference base tokens, each with a light and a dark value
Solutions

How it works day to day

01Spotted drift from the system
02Claude fixed the screen from a link to the Figma component
03The rule is recorded, so the mistake won’t repeat

With each such loop the system gets stricter and the fixes fewer. We reviewed 215 redesign changes: on average each matched the mockup in 2 iterations.

Component states

Every component in the library comes in all states and sizes: buttons, alerts, badges, form fields, dialogs, pagination, and more.

Inputs and multiselect
Notifications
Sidebar
Radio buttons
Tooltips
Buttons
Components from Figma in the dark theme. Click a component to open it full screen
Reducing the font size from 16 to 14 meant editing 191 files by hand. The next day it had to go down again, from 14 to 12. By then it was a single line in a token.
Outcome

One edit instead of hundreds

578 placesin 228 files changed when 153 gray palette tokens were aligned with Figma; only 5 files were edited by hand
2 filesinstead of 136: switching the accent to purple recolored 245 places
1,211 placesrecolored themselves over the whole redesign: 22 commits changed the values of 355 tokens without touching where they're used

Before / after

MetricBefore the redesignIn the redesign
Hard-coded colors (HEX)302114
Components with all colors on tokens79%89%
font-size in px1130191
Hard-coded colors per 1,000 new lines of styles44.9 (before tokens)2,2

What it gives the team

Designers

Mockups are recolored in one click, and both themes are supported with no manual work. A designer fixes discrepancies with the system in minutes instead of filing a backlog ticket

Engineering

Instead of searching hundreds of files, you change a token value. Reviewing visual changes comes down to a couple of lines

Business

Visual changes no longer eat up sprints. A small design team gets more done, because AI handles the routine of bringing screens in line with the system

≈30 hoursof frontend work saved on redesign recoloring alone (estimate)

How the estimate works. Without tokens, each of the 1,211 places would have to be found, edited and checked by hand. At 1.5 minutes per place, that's about 30 hours of a frontend developer's time, almost 4 working days. With tokens, the same changes took edits to a few files. The estimate excludes designer time and future recoloring. Every new palette or theme change saves as much again.

Changing the backdrop color under modals used to be a big task: find every place and change it by hand. Now it's enough to show Claude the mockup, and it finds the right token and changes it everywhere.

The next step is corner radii: they aren't on tokens yet and are the nearest candidate to bring into the system.