What problem does it solve?
This Skill helps you leverage the latest native CSS features to build modern, responsive, and performant user interfaces without relying on preprocessors or JavaScript frameworks for styling.
Core Features & Use Cases
- Modern Layouts: Master CSS Grid, Subgrid, and Flexbox for complex and responsive layouts.
- Advanced Selectors & State: Utilize
:has(), :is(), :where(), and @scope for more precise and maintainable styling.
- Dynamic Styling: Implement Container Queries,
:has(), and :is() for component-level responsiveness.
- Animation & Transitions: Utilize
@starting-style, interpolate-size, View Transitions API, and linear() easing for smooth, performant animations.
- Color & Theming: Work with OKLCH,
color-mix(), relative color syntax, and light-dark() for perceptually uniform and themeable color systems.
- Use Case: Refactor a legacy stylesheet to use native CSS nesting, cascade layers, and container queries, resulting in a smaller, more maintainable, and faster-loading codebase.
Quick Start
Use the modern-css skill to explain how to use CSS Grid for responsive layouts.