What problem does it solve?
This Skill helps developers write modern, efficient CSS by replacing outdated hacks, workarounds, and JavaScript solutions with native CSS features, improving code quality and maintainability.
Core Features & Use Cases
- Modern CSS Techniques: Teaches and applies modern CSS features for layout, animation, color, typography, selectors, and workflow.
- Replaces Legacy Patterns: Identifies and refactors old CSS patterns (e.g., margin hacks, JS scroll listeners, Sass variables) into their modern native equivalents.
- Browser Support Guidance: Provides clear guidance on when to use features based on browser support tiers (Widely Available, Newly Available, Limited Availability) and advises on fallbacks.
- Use Case: When refactoring an old project, this Skill can identify a legacy absolute-centering hack and suggest using
place-items: center with Grid, explaining the benefits and browser support.
Quick Start
Refactor the provided CSS to use modern CSS techniques, prioritizing widely available features.