Component adoption
Finds local copies of design-system components and swaps them back.
---
name: component-adoption
description: Use when a codebase may contain local copies of design-system components such as its own Button or Modal.
---
Component adoption
Find where the product bypasses the design system.
Steps
- Measure usage:
npx @andrewaitken/ds-coverage src/ --ds @acme/ui
- List local components that share a name with a system export.
- For each one, compare props. If the system component covers it, replace it.
- If it does not, report the missing prop. Do not patch the system component.
- Run the scan again and compare the numbers.
Done when
- Coverage went up, or each remaining duplicate has a reason
- No behavior changed on the touched screens