What problem does it solve?
Incorrect, inconsistent, or incomplete design token definitions can lead to visual bugs, accessibility issues, and a broken design system. This Skill systematically fixes these issues, ensuring your design system's foundation is robust and reliable.
Core Features & Use Cases
- Token Modification: Adds, updates, or deletes tokens in
design-tokens.yml to reflect design changes or correct errors.
- Reference & Format Correction: Automatically fixes broken token references and ensures all values adhere to correct formats (e.g., HEX, rem, px).
- Contrast & State Adjustment: Adjusts color values for WCAG compliance and ensures interactive state tokens (e.g.,
base, hover, focus) are visually differentiated.
- Automated Validation: Regenerates CSS from YAML and validates all changes with comprehensive build commands, preventing regressions.
- Use Case: Resolve a critical accessibility issue where a button's hover state has insufficient contrast by adjusting its semantic token value and validating the change across the entire system.
Quick Start
Use the token-fix skill to add missing hover state tokens for the secondary variant and validate the changes.