What problem does it solve?
Responsive-design helps eliminate inconsistent cross-device layouts, broken breakpoints, oversized media, and poor touch interactions by guiding a mobile-first, content-driven approach to layout and media. It reduces layout regressions, cumulative layout shift, and usability issues caused by desktop-first thinking and fixed pixel measurements.
Core Features & Use Cases
- Fluid layouts: Guidance on percentage-based grids, a 12-column baseline, and when to use CSS Grid vs Flexbox.
- Mobile-first CSS: Patterns for writing base styles for small viewports and layering min-width media queries for larger screens.
- Responsive images & media: srcset, picture element, width/height attributes, lazy-loading, and recommended formats (WebP/AVIF).
- Content choreography & breakpoints: Define breakpoints where the design breaks, not by device; reorder content per viewport.
- Touch & typography: Touch target sizing, spacing, and fluid typography with clamp() for scalable type.
- Use Case: Convert a desktop-centric marketing page into a mobile-first layout with reflowing card grids, optimized images, and accessible touch navigation.
Quick Start
Use the responsive-design skill to audit a page and produce mobile-first CSS recommendations, breakpoint suggestions, and responsive image guidance.