What problem does it solve?
This Skill prevents messy, inconsistent, and incompatible CSS patterns by enforcing strict, team-friendly conventions for plain CSS, CSS Modules, and CSS-in-JS.
Core Features & Use Cases
- Modern CSS conventions: Encourages using nesting, :has(), and correct selector composition (including & and &:hover patterns) while supporting nested @media blocks.
- CSS Modules discipline: Enforces camelCase class naming, forbids root tag selectors, and restricts nesting to only allowed forms to avoid invalid or fragile selector structures.
- CSS-in-JS coverage: Applies the same CSS quality bar to styled-components, Emotion, vanilla-extract, styled-jsx, Stitches, and template-literal styles embedded in TS/JS.
Quick Start
Tell your AI to create or review a .module.css or styled-component snippet so it follows camelCase class names and uses only allowed nesting with & and nested @media.