responsive-design
Skill275 starsChanged 52 days agoApache-2.0View on GitHub
Comprehensive guidelines for responsive web design including mobile-first approach, flexible layouts, media queries, and cross-device optimization
35 other projects use a version of this.
Adopted by
Most recently taken up by
- AtulPurohit/Antigravity-Awesome-Skillstheir own version, first seen Nov 29, 2026
- autohandai/community-skillstheir own version, first seen Nov 29, 2026
- Manram/esc-skillstheir own version, first seen Nov 29, 2026
- adymire/CraftLayertheir own version, first seen Nov 15, 2026
- Above-the-Fold-Studio/designmd-skillstheir own version, first seen Nov 1, 2026
- smiling66652/workbuddy-skill-toolkitstheir own version, first seen Nov 1, 2026
Used with
Projects with it also use visual-hierarchy, web-component-design and 10 more.
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.
launchapp-devSkillvisual-hierarchy
Establish clear visual hierarchy through size, weight, color, spacing, and positioning.
Also in 3 projects that use this
Aver005Skillweb-component-design
Master React, Vue, and Svelte component patterns including CSS-in-JS, composition strategies, and reusable component architecture. Use when building UI component libraries, designing component APIs, or implementing frontend design systems.
Also in 3 projects that use this
CodeWithBehnamSkillaccessibility-compliance
Implement WCAG 2.2 compliant interfaces with mobile accessibility, inclusive design patterns, and assistive technology support. Use when auditing accessibility, implementing ARIA patterns, building for screen readers, or ensuring inclusive user experiences.
Also in 3 projects that use this
CodeWithBehnamSkillvisual-design-foundations
Apply typography, color theory, spacing systems, and iconography principles to create cohesive visual designs. Use when establishing design tokens, building style guides, or improving visual hierarchy and consistency.
Also in 3 projects that use this
wpankSkilldesign-system-patterns
Foundational design system architecture — token hierarchies, theming infrastructure, token pipelines, and governance. Use when creating design tokens, implementing theme switching, setting up Style Dictionary, or establishing multi-brand theming. Triggers on design tokens, theme provider, Style Dictionary, token pipeline, multi-brand theming, CSS custom properties architecture.
Also in 3 projects that use this
ManramSkillinteraction-design
Design and implement microinteractions, motion design, transitions, and user feedback patterns. Use when adding polish to UI interactions, implementing loading states, or creating delightful user experiences.
Also in 4 projects that use this
Other versions35 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 35
- epam/ai-dial-chat★ 501same name
- sunflowermm/XRK-AGT★ 140same name
- nahid-sparktales/agent-dispatcher★ 59same name
- launchapp-dev/animus-cli★ 39same name
- MiladJoodi/skills★ 24same name
- autohandai/community-skills★ 14same name
- DigitalExplorers/agent-skills★ 12same name
- wpank/ai★ 11same name
- lotfb86/web-design-skills★ 9same name
- AtulPurohit/Antigravity-Awesome-Skills★ 6same name
25 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 32 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 13
Write semantic HTML to improve accessibility and SEO
- Distinctive: line 14
Use CSS for styling, avoiding inline styles
- Distinctive: line 15
Ensure responsive design using media queries and flexible layouts
- Distinctive: line 22
Start with styles for the smallest viewport
- Distinctive: line 23
Add complexity through progressive enhancement
- Distinctive: line 58
Use for one-dimensional layouts (row or column)
- Very specific: line 60
Use gap for consistent spacing
- Distinctive: line 64
Use for two-dimensional layouts
- Very specific: line 66
Use minmax() for flexible track sizing
- Distinctive: line 79
Use for truly reusable components
- Very specific: line 85
Use clamp() for responsive font sizes
- Distinctive: line 87
Avoid text that's too small on mobile or too large on desktop
- Very specific: line 96
Use rem for scalable typography
- Very specific: line 98
Use em for component-relative sizing
- Very specific: line 99
Avoid fixed px values for font sizes
- Very specific: line 104
Use srcset for multiple image resolutions
- Very specific: line 105
Use sizes to indicate display size at breakpoints
- Distinctive: line 118
Use for art direction (different crops at different sizes)
- Distinctive: line 120
Use media attributes for breakpoint-specific sources
- Very specific: line 124
Use loading="lazy" for below-fold images
- Very specific: line 125
Consider aspect-ratio CSS property
- Very specific: line 151
Use @supports for feature detection
- Distinctive: line 153
Test for specific CSS properties
- Distinctive: line 165
Consider thumb reach zones on mobile
- Distinctive: line 168
Don't rely solely on hover states
- Very specific: line 170
Use @media (hover: hover) for hover-capable devices
- Distinctive: line 180
Always include viewport meta tag
- Very specific: line 181
Don't disable user scaling (avoid user-scalable=no)
- Distinctive: line 182
Test with pinch-to-zoom enabled
- Distinctive: line 183
Ensure content is usable at 200% zoom
- Distinctive: line 194
Test at multiple viewport sizes
- Distinctive: line 195
Test landscape and portrait orientations
- Distinctive: line 196
Test with touch and mouse input
- Distinctive: line 197
Test with keyboard navigation
- Distinctive: line 198
Verify images load appropriate sizes
- Distinctive: line 200
Verify touch targets are adequate
- Distinctive: line 201
Test with browser zoom
- Distinctive: line 212
Use modern formats (WebP, AVIF)
- Distinctive: line 214
Consider responsive loading strategies
“Common” is measured: kept by at least 6 in 10 of the 32 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.

