responsive-design
Responsive layout: content determines breakpoints; test 320/375/390/768/1024/1280/1440/1920; check overflow, wrapping, aspect ratios, safe areas, viewports.
SKILL.mdskills/frontend/responsive-design/SKILL.md
GitHubresponsive-design
Content sets the breakpoints; devices only verify them.
Inspection
Identify layout constraints and existing breakpoints; reproduce the failure at representative widths; inspect computed layout (which of: overflow, wrapping, sizing, positioning, typography, interaction?).
Decision rules
Content sets breakpoints; fix the smallest correct abstraction (constraint, not device hack); intrinsic sizing over fixed pixels.
Activate when
- Laying out or auditing any UI across screen sizes.
Do NOT activate for
- Component internals (see component-design); asset delivery (see media-assets).
Procedure
- Design mobile-first with intrinsic sizing (flex/grid, min/max constraints); add breakpoints where content breaks, not at device clichés.
- Cover: text wrapping, overflow clipping, aspect ratios, tables→cards on narrow, touch target sizes, safe areas, keyboard-resized viewports.
- Test matrix: 320 / 375 / 390 / 768 / 1024 / 1280 / 1440 / 1920+; check each for horizontal scroll, overlap, and truncated content.
- Verify: no overflow at any width, readable without zoom on 320, screenshots or ui-verification probes attached.
Failure modes
Device-specific hacks instead of constraint fixes; horizontal scroll at 320px; touch targets sized for mouse; untested adjacent widths after a fix.
Escalation
Component internals → frontend/component-design; asset delivery → frontend/media-assets.