responsive-design
Skill59 starsChanged 2 months agoMITView on GitHub
Make a layout hold from 320px to wide desktop — content-driven breakpoints, intrinsic layout before media queries, fluid type that still zooms, touch targets, reflow without hiding content, and what to check at each width. Fires when building or fixing layout, when something overflows or collapses at a size, or when a design only exists at one width. Not for proving it renders (browser-verification) and not for semantics or screen readers (accessibility).
19 other projects use a version of this.
Adopted by
Most recently taken up by
- enes9103/my-claude-agents-skillstheir own version, first seen Sep 28, 2026
- planetabhi/riseofmachinetheir own version, first seen Sep 18, 2026
- planetabhi/skillstheir own version, first seen Sep 8, 2026
- socialadsmentor/sam-agentic-harnesstheir own version, first seen Sep 3, 2026
- Above-the-Fold-Studio/designmd-skillstheir own version, first seen Aug 24, 2026
- sivaguru-2113/Agent-personatheir own version, first seen Aug 18, 2026
Used with
Projects with it also use ui-ux-pro-max.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
StrayDragonSkillui-ux-pro-max
UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient.
Also in 4 projects that use this
Other versions19 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 19
- Mindrally/skills★ 266same name
- planetabhi/riseofmachine★ 111same name
- launchapp-dev/animus-cli★ 38same name
- DigitalExplorers/agent-skills★ 12same name
- autohandai/community-skills★ 11same name
- wpank/ai★ 11same name
- socialadsmentor/sam-agentic-harness★ 4same name
- ai4brands-design/claude-skills★ 2same name
- Aver005/agent-skills★ 2same name
- CodeWithBehnam/cc-docs★ 2same name
9 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository79 other files it gives its agents.
- agent-dispatcherSkill
- agent-designSkill
- agent-evalsSkill
- context-engineeringSkill
- llm-observabilitySkill
- mcp-designSkill
- memory-designSkill
- model-routingSkill
- prompt-engineeringSkill
- prompt-injection-defenseSkill
- retrieval-ragSkill
- structured-outputSkill
- tool-designSkill
- api-contract-verificationSkill
- api-designSkill
- authenticationSkill
- authorizationSkill
- background-jobsSkill
- cachingSkill
- idempotency-and-retriesSkill
- webhooksSkill
- database-migration-verificationSkill
- data-integritySkill
- data-pipelinesSkill
- data-qualitySkill
- migrationsSkill
- postgresSkill
- query-optimizationSkill
- schema-designSkill
- accessibilitySkill
- accessibility-verificationSkill
- design-systemsSkill
- design-to-codeSkill
- frontend-designSkill
- motion-designSkill
- ui-auditSkill
- ux-writingSkill
- ci-cdSkill
- deploymentSkill
- dockerSkill
- github-actionsSkill
- incident-responseSkill
- observabilitySkill
- release-verificationSkill
- rollbackSkill
- component-architectureSkill
- frontend-performanceSkill
- shadcn-uiSkill
- stack-detectionSkill
- tailwindSkill
- visual-verificationSkill
- competitive-analysisSkill
- copywritingSkill
- data-analysisSkill
- deep-researchSkill
- documentation-verificationSkill
- positioningSkill
- seoSkill
- source-evaluationSkill
- technical-writingSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 19 edited versions we read keep these.
0
Distinctive
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 22
Start from the small layout and add: Write the base styles for the narrow case, then use min-width queries to add complexity.
“Common” is measured: kept by at least 6 in 10 of the 19 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Responsive design
Most responsive bugs are a layout that was designed at one width and then defended with media queries. Layouts that adapt on their own need fewer breakpoints and break in fewer places.
When this fires
Building or repairing any layout that will be seen at more than one width, and whenever a design
hand-off shows a single desktop frame. It does not fire for the proving pass — screenshots, console
and interaction checks belong to browser-verification.
Procedure
- Let the content choose the breakpoints. Widen and narrow until the layout actually breaks — a line gets too long, a card squashes, a nav wraps badly — and put a breakpoint there. Device names are marketing; the content is the constraint.
- Start from the small layout and add. Write the base styles for the narrow case, then use
min-widthqueries to add complexity. Going the other way means every small screen pays to undo desktop rules, and undoing is where the leaks are. - Reach for intrinsic layout before a media query.
flex-wrap,grid-template-columns: repeat(auto-fit, minmax(…, 1fr)),min()/max()/clamp(), and container queries where the component's size — not the viewport's — is what should drive it. A component that adapts to its own container survives being moved; a viewport-keyed one does not. - Make type fluid without breaking zoom. A
clamp()with aremterm in the middle scales with the viewport and still responds to the user's font size and browser zoom. A size expressed invwalone does not — it ignores zoom entirely, which is a genuine accessibility failure, not a stylistic choice. Keep an explicit floor and ceiling; line length around 45–75 characters. - Keep spacing on one scale. Fluid gutters and section padding from the same tokens as the type scale. Ad-hoc pixel values per breakpoint are how layouts drift apart over time.
- Size targets for fingers, not cursors. 24×24 CSS px is the floor for any interactive target, with clear spacing between adjacent ones; make primary and frequently-tapped actions comfortably larger. Check the real hit area, not the icon — padding counts, a bare glyph does not.
- Reflow, never remove. At narrow widths, content stacks, wraps, collapses into a disclosure or moves into a menu. It does not disappear. Anything only reachable on desktop is a feature that does not exist on mobile — if a design asks for that, stop and ask, because it changes what the product does rather than how it looks.
- Handle media explicitly. Responsive images with
srcset/sizesso small screens do not download desktop assets; anaspect-ratioor explicit dimensions so nothing jumps as images load;object-fitso crops behave. Long tables, code blocks and diagrams are the legitimate exception — give them their own horizontal scroll container rather than shrinking the page around them. - Distrust viewport units on mobile.
100vhis taller than the visible area while browser chrome is showing; prefer the dynamic/small viewport units with a plain fallback underneath. Where a layout goes edge to edge on a notched device, pad with the safe-area environment variables and set the viewport meta to cover — and never disable user scaling. - Do not tie behaviour to width. Wide does not mean mouse and narrow does not mean touch. Gate
hover-only affordances on
@media (hover: hover)and make sure anything revealed on hover has a tap or focus path too. - Check at sizes, not at one size. Walk 320, 375, 768, 1024 and 1440 CSS px, plus 1280 at 400% zoom — which is the same reflow constraint as 320 and catches the zoom bugs that resizing misses. Reload after each change, do not just drag the window: layout-time breakpoints, container query registration and device gates only re-run on load.
- At every size, look for the same six things. Horizontal page scroll; clipped or overlapping content; text squeezed under ~40 characters or stretched past ~80; targets and their spacing; images loading at the right size with no jump; and whether the reading order still matches the visual order after items reflow.
Checklist
- Breakpoints correspond to where content broke, not to device names
- Base styles are the narrow case; complexity added with
min-width - Intrinsic layout used where it removes a media query
- Fluid type keeps a
remterm, a floor and a ceiling; zoom still works - Every interactive target is at least 24×24 CSS px with real spacing
- No content removed at small sizes — reflowed, collapsed or moved instead
- No horizontal page scroll at 320px; exceptions scoped to their own container
- Images sized responsively and reserve their space before loading
100vhassumptions and safe areas handled; scaling not disabled- Hover-only affordances have a tap and focus equivalent
- Each width was reloaded, not just resized
- 1280 at 400% zoom checked alongside 320px
Failure handling
- Something overflows and the culprit is not obvious — find the element wider than its container
before changing anything. Long unbroken strings, fixed pixel widths, negative margins and
100vwinside a padded parent cause most of it. Do not applyoverflow: hiddento the page: it hides the symptom and clips content for everyone. - The design only exists at one width — say which breakpoints you inferred and why, and get them confirmed. Inventing the mobile layout silently and calling it done is how two people ship two different products.
- A fix at one width breaks another — re-walk the whole set of widths after every fix, not just the one you were working on. This is the most common regression in this area.
- A third-party or embedded component will not reflow — contain it and its scroll, record it as a known limit, and do not claim the page reflows cleanly.
- You cannot open a browser — report the layout as changed but unchecked. Reading CSS is not checking layout, and resizing without reloading is not checking breakpoints.
Evidence to report
The widths walked and whether each was reloaded; a screenshot per width where the layout meaningfully
differs; what overflowed or clipped and what fixed it; the breakpoints added or moved, with the
content reason for each; the zoom result at 400%; and the sizes, states or components not checked.
"Made it responsive" without the width list is not evidence — hand the rendered proof to
browser-verification.
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.

