responsive-layout
Installation
SKILL.md
Responsive Layout
Responsive layout is intrinsic reflow plus content-led breakpoints/container queries, not named-device CSS.
The decision order
- Start mobile-first with Grid/Flex intrinsic sizing (
minmax,auto-fit,clamp,%/fr). - Add breakpoints only where content breaks; reusable components use container queries.
- Verify minimum supported viewport, 200–400% zoom, long/translated content, narrow embeds, and wide views without overflow or collapse.
Preserve hierarchy under pressure
Start with non-disappearing content, reading order, and narrowest real container. Choose stack/reorder/progressive reveal/rail from observed pressure; test long content, locale, zoom, and embeds before calling it responsive.