responsive-design
Installation
Summary
Mobile-first CSS layouts using Flexbox, Grid, media queries, and responsive images across all devices.
- Covers mobile-first design progression from 320px through large screens (1440px+) with standard breakpoint definitions
- Implements Flexbox for 1-dimensional layouts and CSS Grid for 2-dimensional layouts, with practical examples for navigation, cards, and dashboards
- Includes responsive image techniques: srcset for resolution-aware loading, picture element for art direction, and CSS background image switching
- Provides fluid typography using clamp() for viewport-relative sizing and container queries for component-level responsive behavior
- Requires viewport meta tag and enforces relative units (rem, em, %, vw/vh) with max-width constraints instead of fixed dimensions
SKILL.md
Responsive Design
When to use this skill
- New website/app: Layout design for combined mobile-desktop use
- Legacy improvement: Converting fixed layouts to responsive
- Performance optimization: Image optimization per device
- Multiple screens: Tablet, desktop, and large screen support
Instructions
Step 1: Mobile-First Approach
Design from small screens and progressively expand.