responsive-design
Skill266 starsChanged 10 months agoApache-2.0View on GitHub
Comprehensive guidelines for responsive web design including mobile-first approach, flexible layouts, media queries, and cross-device optimization
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
- nahid-sparktales/agent-dispatchertheir own version, first seen Sep 21, 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
Used with
Projects with it also use ui-ux-pro-max and frontend-design.
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
VercelSkillfrontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.
Also in 3 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
- planetabhi/riseofmachine★ 111same name
- nahid-sparktales/agent-dispatcher★ 59same 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 repository264 other files it gives its agents.
- accessibility-a11ySkill
- alpine-jsSkill
- analytics-data-analysisSkill
- android-developmentSkill
- angular-developmentSkill
- angularSkill
- anime-jsSkill
- anthropic-claude-developmentSkill
- api-developmentSkill
- apollo-graphqlSkill
- aspnet-coreSkill
- astroSkill
- auth0-authenticationSkill
- autogen-developmentSkill
- automl-hyperparameter-optimizationSkill
- aws-developmentSkill
- azureSkill
- backend-developmentSkill
- bash-scriptingSkill
- beautifulsoup-parsingSkill
- bitbucket-workflowSkill
- blazorSkill
- blender-python-addonSkill
- blockchainSkill
- bootstrapSkill
- business-central-developmentSkill
- cheerio-parsingSkill
- chrome-extension-developmentSkill
- ci-cd-best-practicesSkill
- clean-architectureSkill
- clean-codeSkill
- clerk-authenticationSkill
- cloudflare-developmentSkill
- computer-vision-opencvSkill
- convexSkill
- cppSkill
- c-sharpSkill
- cssSkill
- cypressSkill
- data-analysis-jupyterSkill
- data-analystSkill
- data-jupyter-pythonSkill
- deep-learning-pythonSkill
- deep-learning-pytorchSkill
- deep-learningSkill
- deno-typescriptSkill
- design-systemsSkill
- devopsSkill
- django-pythonSkill
- django-rest-api-developmentSkill
- dockerSkill
- dotnetSkill
- drizzle-ormSkill
- drupal-developmentSkill
- elasticsearch-best-practicesSkill
- electron-developmentSkill
- elixirSkill
- embedded-stm32Skill
- esbuild-bundlerSkill
- ethereumSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
39 rules. 0 are common, 26 are distinctive, and 13 are very specific to this project.
0
Common
Most of the 19 edited versions we read keep these.
26
Distinctive
This author's own choices. Worth a look.
13
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Write semantic HTML to improve accessibility and SEO
- Distinctive: line 11
Use CSS for styling, avoiding inline styles
- Distinctive: line 12
Ensure responsive design using media queries and flexible layouts
- Distinctive: line 19
Start with styles for the smallest viewport
- Distinctive: line 20
Add complexity through progressive enhancement
- Distinctive: line 55
Use for one-dimensional layouts (row or column)
- Very specific: line 57
Use gap for consistent spacing
- Distinctive: line 61
Use for two-dimensional layouts
- Very specific: line 63
Use minmax() for flexible track sizing
- Distinctive: line 76
Use for truly reusable components
- Very specific: line 82
Use clamp() for responsive font sizes
- Distinctive: line 84
Avoid text that's too small on mobile or too large on desktop
- Very specific: line 93
Use rem for scalable typography
- Very specific: line 95
Use em for component-relative sizing
- Very specific: line 96
Avoid fixed px values for font sizes
- Very specific: line 101
Use srcset for multiple image resolutions
- Very specific: line 102
Use sizes to indicate display size at breakpoints
- Distinctive: line 115
Use for art direction (different crops at different sizes)
- Distinctive: line 117
Use media attributes for breakpoint-specific sources
- Very specific: line 121
Use loading="lazy" for below-fold images
- Very specific: line 122
Consider aspect-ratio CSS property
- Very specific: line 148
Use @supports for feature detection
- Distinctive: line 150
Test for specific CSS properties
- Distinctive: line 162
Consider thumb reach zones on mobile
- Distinctive: line 165
Don't rely solely on hover states
- Very specific: line 167
Use @media (hover: hover) for hover-capable devices
- Distinctive: line 177
Always include viewport meta tag
- Very specific: line 178
Don't disable user scaling (avoid user-scalable=no)
- Distinctive: line 179
Test with pinch-to-zoom enabled
- Distinctive: line 180
Ensure content is usable at 200% zoom
- Distinctive: line 191
Test at multiple viewport sizes
- Distinctive: line 192
Test landscape and portrait orientations
- Distinctive: line 193
Test with touch and mouse input
- Distinctive: line 194
Test with keyboard navigation
- Distinctive: line 195
Verify images load appropriate sizes
- Distinctive: line 197
Verify touch targets are adequate
- Distinctive: line 198
Test with browser zoom
- Distinctive: line 209
Use modern formats (WebP, AVIF)
- Distinctive: line 211
Consider responsive loading strategies
“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 Guidelines
Core Principles
- Write semantic HTML to improve accessibility and SEO
- Use CSS for styling, avoiding inline styles
- Ensure responsive design using media queries and flexible layouts
- Prioritize accessibility by using ARIA roles and attributes
- Design mobile-first, then enhance for larger screens
Mobile-First Approach
Strategy
- Start with styles for the smallest viewport
- Add complexity through progressive enhancement
- Base styles work without media queries
- Media queries add features for larger screens
Benefits
- Forces prioritization of essential content
- Improves performance on mobile devices
- Ensures core functionality works everywhere
- Reduces CSS complexity and specificity issues
/* Base styles for mobile */
.container {
padding: 1rem;
}
/* Tablet and up */
@media (min-width: 768px) {
.container {
padding: 2rem;
}
}
/* Desktop and up */
@media (min-width: 1024px) {
.container {
max-width: 1200px;
margin: 0 auto;
}
}Flexible Layouts
Flexbox
- Use for one-dimensional layouts (row or column)
- Leverage
flex-wrapfor responsive wrapping - Use
gapfor consistent spacing - Combine with media queries for layout changes
CSS Grid
- Use for two-dimensional layouts
- Leverage
auto-fitandauto-fillfor responsive grids - Use
minmax()for flexible track sizing - Combine
frunits with fixed minimums
.grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 1rem;
}Container Queries
- Style components based on container size, not viewport
- Use for truly reusable components
- Define containers with
container-type
Responsive Typography
Fluid Typography
- Use
clamp()for responsive font sizes - Set minimum, preferred, and maximum values
- Avoid text that's too small on mobile or too large on desktop
h1 {
font-size: clamp(1.5rem, 4vw + 1rem, 3rem);
}Units
- Use
remfor scalable typography - Base
remon user's browser settings - Use
emfor component-relative sizing - Avoid fixed
pxvalues for font sizes
Responsive Images
Srcset and Sizes
- Use
srcsetfor multiple image resolutions - Use
sizesto indicate display size at breakpoints - Let browser choose optimal image
<img
src="image-800.jpg"
srcset="image-400.jpg 400w, image-800.jpg 800w, image-1200.jpg 1200w"
sizes="(max-width: 600px) 100vw, (max-width: 1000px) 50vw, 800px"
alt="Description"
>Picture Element
- Use for art direction (different crops at different sizes)
- Provide fallback with
<img>element - Use media attributes for breakpoint-specific sources
Performance
- Include
widthandheightattributes to prevent layout shift - Use
loading="lazy"for below-fold images - Consider
aspect-ratioCSS property
Media Queries
Common Breakpoints
/* Small phones */
@media (min-width: 320px) { }
/* Large phones */
@media (min-width: 480px) { }
/* Tablets */
@media (min-width: 768px) { }
/* Laptops/Desktops */
@media (min-width: 1024px) { }
/* Large screens */
@media (min-width: 1280px) { }
/* Extra large screens */
@media (min-width: 1536px) { }Feature Queries
- Use
@supportsfor feature detection - Provide fallbacks for unsupported features
- Test for specific CSS properties
Preference Queries
prefers-color-schemefor dark/light modeprefers-reduced-motionfor animation preferencesprefers-contrastfor contrast preferences
Touch Targets
Sizing
- Minimum 44x44 pixels for touch targets
- Provide adequate spacing between targets
- Consider thumb reach zones on mobile
Interaction
- Don't rely solely on hover states
- Provide touch alternatives for hover interactions
- Use
@media (hover: hover)for hover-capable devices
Viewport Configuration
Meta Tag
<meta name="viewport" content="width=device-width, initial-scale=1">Best Practices
- Always include viewport meta tag
- Don't disable user scaling (avoid
user-scalable=no) - Test with pinch-to-zoom enabled
- Ensure content is usable at 200% zoom
Testing
Tools
- Browser DevTools device emulation
- Real device testing when possible
- Lighthouse for performance audits
- W3C validators for code quality
Checklist
- Test at multiple viewport sizes
- Test landscape and portrait orientations
- Test with touch and mouse input
- Test with keyboard navigation
- Verify images load appropriate sizes
- Check typography readability
- Verify touch targets are adequate
- Test with browser zoom
Performance Considerations
Critical CSS
- Inline critical above-fold CSS
- Defer non-critical stylesheets
- Minimize render-blocking resources
Asset Optimization
- Compress images appropriately
- Use modern formats (WebP, AVIF)
- Lazy load below-fold content
- Consider responsive loading strategies
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.

