You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
🤖 Centralize Tailwind color usage with CSS variables
Replace hardcoded hex colors and arbitrary Tailwind values with semantic
CSS variables throughout the codebase. This improves maintainability and
makes it easier to update the color scheme consistently.
Changes:
- Extended @theme in globals.css with 40+ new semantic color variables
- Replaced 157 instances of text-[#...], bg-[#...], border-[#...]
- Replaced rgba() arbitrary values with named color variables
- Replaced var() usages with direct Tailwind classes
- Applied to both components and Storybook stories
New color categories added:
- Text variants (muted-light, muted-dark, placeholder, subtle, etc.)
- Border variants (border-medium, border-darker, border-light, etc.)
- Background variants (bg-dark, bg-darker, modal-bg, etc.)
- Accent variants (accent-hover, accent-dark, accent-light, etc.)
- Status colors (danger-light, danger-soft, warning, success-light, etc.)
- Toast/notification backgrounds with opacity
- Semi-transparent overlays (danger-overlay, warning-overlay, etc.)
- Code syntax highlighting (code-type, code-keyword, etc.)
- Review/diff backgrounds (review-bg-blue, review-bg-info, etc.)
All colors are now centralized in src/styles/globals.css and use
Tailwind v4's @theme directive for automatic class generation.
_Generated with `cmux`_
0 commit comments