Prompt
I'm building a design system and need to catch component drift, what should I use?
Latest observation
Oct 27, 2026
OpenAI APIWeb search: off
For catching component drift in a design system, the best tools are usually a combo of:
-
Visual regression testing
Detects unintended UI changes by comparing screenshots over time.
Good options:- Chromatic (great if you use Storybook)
- Percy
- Playwright + screenshot diffing for a more custom setup
-
Storybook
Use it as the component “source of truth” and pair it with visual tests.
It’s especially useful for reviewing component states and variants. -
Automated tests for API/props contracts
- TypeScript for prop safety
- Unit tests to ensure component behavior doesn’t drift
- Snapshot tests only sparingly; they’re best for structure, not visuals
Best practical setup
If you’re already using Storybook:
- Storybook + Chromatic is probably the most straightforward choice.
If you want more control:
- Storybook + Playwright for interaction tests
- Playwright screenshot comparisons for visual drift
- TypeScript + unit tests to guard component contracts
Quick recommendation
- UI drift → Chromatic or Percy
- Behavior drift → Playwright / Testing Library
- Prop/contract drift → TypeScript + tests
If you want, I can suggest a setup based on your stack (React, Vue, Angular, etc.).