responsive-patterns
Skill249 starsChanged 6 months agoMITView on GitHub
Use when designing complex responsive layouts — breakpoint strategy, layout shifts, content reflow, responsive typography, container queries, and ensuring the experience works across the full device spectrum
In this repository36 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- accessible-contentSkill
- adaptive-interfacesSkill
- cognitive-accessibilitySkill
- design-debateSkill
- design-debt-trackerSkill
- design-discoverySkill
- design-expressSkill
- design-handoffSkill
- design-librarySkill
- design-mdSkill
- design-memorySkill
- designpowers-critiqueSkill
- design-retrospectiveSkill
- design-reviewSkill
- design-stateSkill
- design-strategySkill
- design-system-alignmentSkill
- design-tasteSkill
- figma-bridgeSkill
- heuristic-evaluationSkill
- inclusive-personasSkill
- inspiration-scoutingSkill
- interaction-designSkill
- motion-choreographySkill
- research-planningSkill
- synthetic-user-testingSkill
- taste-feedbackSkill
- taste-reportSkill
- token-architectureSkill
- ui-compositionSkill
- usability-testingSkill
- using-designpowersSkill
- verification-before-shippingSkill
- voice-and-toneSkill
- writing-design-plansSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
When ui-composition defines a layout that spans breakpoints
- Distinctive: line 13
When the design-critic flags responsive issues
- Distinctive: line 14
When building anything more complex than single-column
- Distinctive: line 22
When the layout looks wrong — that's a breakpoint
- Distinctive: line 64
Test at: 320px, one pixel below each breakpoint, 200% zoom at 1280px, landscape phone, and real devices.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Responsive Patterns
Responsive design is not "make it fit on a phone." It is designing for every context — one-handed on a bus, zoomed to 200% on a desktop, on a tablet in sunlight.
When to Use
- When
ui-compositiondefines a layout that spans breakpoints - When the design-critic flags responsive issues
- When building anything more complex than single-column
Breakpoint Strategy
Content drives breakpoints, not devices. Do not use 768px because "that's tablet." Use the width where your content breaks.
- Start at 320px
- Widen slowly
- When the layout looks wrong — that's a breakpoint
- Name by behaviour, not device
--bp-stack: 0;
--bp-sidebar: 640px;
--bp-columns: 900px;
--bp-wide: 1200px;Content Priority Shifting
At narrow widths, decide what gets:
- Kept — essential for the task
- Collapsed — behind a toggle
- Deferred — lower in scroll order
- Hidden — removed (last resort)
Document these decisions.
Responsive Typography
--font-size-body: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
--font-size-h1: clamp(1.75rem, 1.5rem + 1.25vw, 2.5rem);Body text minimum 16px. Line length 45-75 characters. At 200% zoom, no horizontal scroll (WCAG 1.4.10).
Container Queries vs Media Queries
| Use case | Use |
| Page-level layout | @media |
| Component adaptation | @container |
Touch Targets
44x44px minimum at mobile. 8px minimum gap between adjacent targets.
Testing
Test at: 320px, one pixel below each breakpoint, 200% zoom at 1280px, landscape phone, and real devices.
What You Deliver
- Breakpoint definitions with rationale
- Layout behaviour at each breakpoint
- Content priority decisions
- Typography scale with clamp() values
- Touch target verification
Integration
- Informed by:
ui-composition,design-discovery - Feeds into:
design-builder,accessibility-reviewer
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

