| name | responsive-layout |
| description | Build mobile-first responsive layouts (≥375px) with fluid type, container queries, and grid/bento composition that doesn't break. Use when laying out a page or fixing responsive issues. |
responsive-layout
Mobile-first, fluid, and composed — not a desktop layout crammed onto a phone.
Process
- Design at 375px first, then scale up. Every layout must work at 375px width.
- Fluid type & spacing:
clamp() for headings and section padding so it scales smoothly between
breakpoints instead of jumping.
- Use the right query: media queries for page layout; container queries for components that appear
in multiple widths (cards, sidebars).
- Composition with intent: CSS grid for structure; break the grid (bento/editorial/overlap) where the
design direction calls for it — don't default to uniform columns.
- Touch targets ≥44px, no hover-only interactions on touch, test the mobile nav (Sheet/Drawer).
Checklist
Output
- The responsive layout, breakpoints used, and confirmation it was checked at 375px (or flagged unverified).
Guardrails
- Don't claim "responsive" from code alone — view it at 375px (Playwright/preview) or say it's unverified.
- Avoid fixed heights that clip content when text wraps on small screens.