Audit Tokens
Audits and replaces hardcoded colors with standardized CSS design tokens to ensure theme consistency and dark mode support.
The Audit Tokens skill is designed to maintain the integrity of your design system by scanning frontend codebases for hardcoded color values. It identifies hex codes, RGB/HSL literals, and standard Tailwind palette classes that bypass your project's CSS variable tokens. By mapping these values to approved tokens like 'bg-primary' or 'text-muted-foreground', the skill ensures that UI components remain consistent, accessible, and fully compatible with dark mode transitions. It is an essential utility for design system audits, post-UI refactors, and enforcing architectural decisions regarding frontend styling.
Key Features
01Scans .tsx, .ts, and .css files for hex, RGB, and HSL color patterns
02Identifies hardcoded Tailwind palette classes like 'bg-emerald-500'
03Maps hardcoded values to project-specific CSS variable tokens
04Provides a safe 'ask-before-fix' workflow for bulk replacements
05Supports intelligent exclusion of CSS source files, tests, and storybook folders
060 GitHub stars
Use Cases
01Ensuring full dark mode compatibility across all frontend components
02Enforcing architectural design rules (ADRs) for color tokenization
03Standardizing a legacy codebase to use a modern CSS design system