What problem does it solve?
Provides a coherent set of styling rules and implementation patterns to avoid inconsistent CSS, specificity conflicts, and theme drift in React and Next.js projects that use Tailwind, CSS Modules, and Material UI.
Core Features & Use Cases
- Class composition: Use a cn() utility for deterministic Tailwind class merging and predictable responsive variants.
- Responsive & theming patterns: Mobile-first layouts, container queries, and dark mode via a class-based approach with persistence to prevent flash of wrong theme.
- Tokens & interoperability: Design tokens implemented as CSS custom properties and optional synchronization with MUI theme overrides; reserve CSS Modules for complex animations only.
Quick Start
Use the css-rules skill to refactor a React component to Tailwind using a cn() class composition helper, add mobile-first responsive classes and container queries, implement dark-mode with a class-based theme and persistent storage, and replace magic values with CSS custom properties.