Zero-Downtime Token Migration
Brought Saarthi, an internal dashboard two design-system generations behind, onto Turbo UI by remapping its tokens underneath, without renaming a variable or pausing development.
- Role
- Lead Product Designer · did the mapping in code
- Timeline
- A weekend in Jul 2026
- Stack / Tools
- SCSS custom properties
- Turbo UI tokens
- Storybook
- Turborepo
- Figma variables
01
The Problem
Saarthi was two generations behind the current design system, still on its older orange branding. Its components could not all be rebuilt on Turbo UI without breaking a product that teams ship to every week.
- Issue 01
Token names were a production API
Variables such as --bg-fill-default-primary are referenced across a shared UI package and nine apps in one monorepo. Renaming them would break screens nobody was looking at.
- Issue 02
A rebuild was off the table
Replacing every component with its Turbo UI equivalent meant a long freeze, and the risk of regressions across operational tools people rely on daily.
- Issue 03
No developer time to spare
Feature work could not stop for a design-system upgrade, so the migration had to cost the developers close to nothing.
02
Architecture
I left the components alone and changed what their tokens point to. Turbo’s primitives and semantic tokens went in underneath, and every existing Saarthi name became an alias to them. I made the change myself in the repo, on a parallel branch, and built a before-and-after page in the team’s existing Storybook so anyone could review it.
Saarthi names · 121
What components already use. Not one was renamed.
Turbo semantic · 49
The new layer in between. Shared meaning from Turbo UI.
Primitives · 55
Turbo palettes, plus legacy values kept on purpose.
- 1. Saarthi names · 121What components already use. Not one was renamed.
- 2. Turbo semantic · 49The new layer in between. Shared meaning from Turbo UI.
- 3. Primitives · 55Turbo palettes, plus legacy values kept on purpose.
--bg-fill-brand↓--bg-brand-base↓--brand-500#4736fe--bg-fill-brand-hover↓--bg-brand-base-hover↓--brand-600#351ed8--bg-fill-brand-secondary↓--bg-brand-subtle↓--brand-100#e1e3fd--text-default-primary↓--text-primary↓--color-slate-950#020617--text-default-secondary↓--text-secondary↓--color-slate-500#64748b--border-default-primary↓--border-primary↓--color-slate-200#e2e8f0--bg-fill-state-error↓--bg-danger-base↓--color-red-600#dc2626--bg-fill-misc-teal↓held · no Turbo equivalent yet↓--legacy-teal-500#0c534f
All 121 names are aliases now: 73 route through the Turbo semantic layer, 12 point straight at a Turbo primitive, and 36 are held on their legacy value until a visual decision is made.
:root {
/* Primitive layer */
--brand-500: #4736fe;
--color-slate-950: #020617;
/* Turbo semantic layer */
--bg-brand-base: var(--brand-500);
--text-primary: var(--color-slate-950);
/* Saarthi compatibility layer */
--bg-fill-brand: var(--bg-brand-base);
--text-default-primary: var(--text-primary);
}--bg-fill-brand↓ Saarthi compatibility alias--bg-brand-base↓ Turbo semantic token--brand-500↓ primitive#4736fe
| Token group | Mapped |
|---|---|
| Background | 32 |
| Text | 19 |
| Border | 10 |
| Icon | 17 |
| Spacing | 29 |
| Typography | 12 |
| Size and radius | 12 |
| Held for a decision | 10 |
- Decision 01
Alias the old names, never rename
Every existing variable still exists and still resolves, so nothing that references it can break.
CostTwo naming systems live side by side until old components are retired.
- Decision 02
No component changes in the first pass
Beyond the color variables file, only four component source files were touched: Button, Checkbox, Modal and Tooltip.
CostComponents modernize in value, not in structure or API.
- Decision 03
A decision bucket for anything ambiguous
Ten token groups, such as misc colors, gradients and the single shadow, stayed on their legacy values until someone approved a visual change.
CostThose parts of the product still look like the old system.
- Decision 04
Review inside the existing Storybook
Before-and-after stories for 51 components, plus a token migration page, went into the Storybook the team already runs.
CostThe comparison stories need removing once the rollout is done.
- Decision 05
Done by the designer, in parallel
The work sat on its own branch, so developers reviewed a finished change and kept shipping features meanwhile.
CostIt still needs engineering review before it merges.
03
Impact
Saarthi’s typography, spacing and color now resolve from Turbo UI, and its branding moved from the legacy orange to the current blue, with no pause in development. The change is on staging.
121
Saarthi names aliased
73 through the Turbo semantic layer
51
Components with before/after stories
In the existing Storybook
0
Token names renamed
Every old variable still resolves
4
Component files changed
Button, Checkbox, Modal, Tooltip