
Design System Enforcer
Replace hardcoded UI values with design tokens automatically
4.2(51 reviews)500+ downloadsUpdated Oct 2026Verified SafeSecurity VerifiedThis skill was analyzed by our AI security scanner for harmful content including data exfiltration, system manipulation, credential theft, and prompt injection. No threats were detected.
What You Can Do
Analyze your entire codebase to identify hardcoded design values (colors, typography, spacing) that violate design system compliance. Claude generates targeted refactoring suggestions and automated replacements that map hardcoded values to your design token system. You maintain a single source of truth for your UI, making brand updates and scaling design changes seamless across all components.
Features
Scans codebases for hardcoded colors, font sizes, line heights, and spacing values
Detects design system violations and generates compliance reports
Maps hardcoded values to matching design tokens automatically
Generates refactoring scripts to replace values in batch across files
Supports Tailwind CSS, CSS variables, SCSS variables, and custom token systems
Identifies orphaned values not yet in your design token library
Creates audit trails showing what was changed and why
Example Output
Input: Analyze a button component file
Output:
code
COMPLIANCE AUDIT RESULTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
- ❌ VIOLATIONS DETECTED (5):
• background: #3B82F6 → should be: --color-primary-500
• padding: 12px 16px → should be: --spacing-3 --spacing-4
• font-size: 14px → should be: --font-size-sm
• border-radius: 6px → should be: --radius-md
• box-shadow: 0 2px 4px rgba(0,0,0,0.1) → should be: --shadow-sm
- ✅ REFACTORED CODE:
btn {
background: var(--color-primary-500);
padding: var(--spacing-3) var(--spacing-4);
font-size: var(--font-size-sm);
border-radius: var(--radius-md);
box-shadow: var(--shadow-sm);
}
- 📊 COMPLIANCE: 0% → 100% (5 tokens applied)
What's Included
- SKILL.md instruction file for Design System Enforcer:
- Codebase scanner template for detecting hardcoded values in CSS/Tailwind/SCSS:
- Design token mapping framework linking hardcoded values to your system:
- Refactoring script generator for batch-replacing values across files:
- Compliance audit checklist to track design system adherence:
- Token library inventory worksheet documenting all design values:
Who It's For
- Design System Managers — enforce consistent token usage across teams and codebases
- Frontend Engineers — refactor legacy code to comply with design systems
- Design Leads — audit UI implementation for brand compliance
- Technical Leads — ensure standardized spacing, typography, and color usage
- Component Library Maintainers — keep design systems clean and audit-ready
Best For
- Detecting and replacing hardcoded color values in stylesheets
- Refactoring legacy codebases to use design tokens
- Generating design system compliance audits and reports
- Mapping undocumented values to formal design token systems
- Batch-replacing spacing, typography, and color across projects
- Identifying gaps between actual UI implementation and design specs
You might also like
$40.00







