As asked
A product has years of hard-coded colours, spacing, and typography. How would you migrate it to design tokens without freezing feature work?
Sample answer outline
Define token layers clearly: primitive values, semantic tokens, and component-level decisions. Start with high-impact surfaces and introduce tokens alongside linting, codemods, visual regression tests, and documentation. Avoid a single big-bang rewrite; migrate by component or route and keep compatibility aliases during the transition. Partner with design so tokens reflect decisions, not just renamed hex values. The senior answer treats this as a change-management problem with adoption metrics and escape hatches, not merely a CSS refactor.
Expect these follow-ups
- How do you handle a brand refresh during the migration?
- What is the difference between a primitive and semantic token?
- How would you measure adoption and remaining debt?