Installation
npm install -g alignmydesignnpm install --save-dev alignmydesignNote: You can also run commands directly with npx alignmydesign without installing.
Quick Start
Scan Your Codebase
Inventory every color, font, and spacing value in your project.
alignmydesign scanSee the Report
Get a breakdown of your design health and drift score.
alignmydesign reportGenerate Tokens
Output a clean set of CSS/JSON/TS tokens based on your actual usage.
alignmydesign initCore Concepts
Clustering Engine
We don't just count values. We use CIE Delta-E to group similar colors (e.g. Slate 500 and Gray 500) and normalize spacing to your nearest grid unit.
Design Tokens
Drift happens when values are hardcoded. We replace magic values with semantic tokens like colors.primary.
CLI Reference
Starts visual dashboard
Visual Dashboard
The CLI is powerful, but seeing is believing. Launch the local dashboard to visualize your design system's health, interact with dependency graphs, and spot outliers.
alignmydesign startlocalhost:5656Drift Score
Your Drift Score (0-100) is a weighted calculation of how consistent your codebase is. A lower score means a healthier, more consistent design implementation.
- 0-20Excellent
- 21-40Good
- 41-60Fair
- 61-80Poor
- 81+Critical