Skip to content
Skillpedia
Interfaces (UI/UX)41k · #6807

responsive-design

What it does

This skill helps create websites and apps that automatically adjust to any screen size, whether it's a phone, tablet, or computer. It ensures everything looks good and works well on any device.

When to use it

  • ✓When building a website that needs to work well on phones and computers.
  • ✓When you want specific parts of your site to adjust on their own.
  • ✓To make text and spacing look proportional on all screen sizes.

Skill link

https://github.com/wshobson/agents/blob/main/plugins/ui-design/skills/responsive-design/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/wshobson/agents/blob/main/plugins/ui-design/skills/responsive-design/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“How do I make my website adapt to different screen sizes?”

5 new skills a week. 1 minute to read.

How it works

It uses modern techniques so that visual elements rearrange and resize according to the available space. It starts by thinking about mobile and then adapts for larger screens, ensuring a good experience everywhere.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Responsive Design

Master modern responsive design techniques to create interfaces that adapt seamlessly across all screen sizes and device contexts.

When to Use This Skill

  • Implementing mobile-first responsive layouts
  • Using container queries for component-based responsiveness
  • Creating fluid typography and spacing scales
  • Building complex layouts with CSS Grid and Flexbox
  • Designing breakpoint strategies for design systems
  • Implementing responsive images and media
  • Creating adaptive navigation patterns
  • Building responsive tables and data displays

Detailed patterns and worked examples

Detailed pattern documentation lives in references/details.md. Read that file when the navigation tier above is insufficient.

Best Practices

  1. Mobile-First: Start with mobile styles, enhance for larger screens
  2. Content Breakpoints: Set breakpoints based on content, not devices
  3. Fluid Over Fixed: Use fluid values for typography and spacing
  4. Container Queries: Use for component-level responsiveness
  5. Test Real Devices: Simulators don't catch all issues
  6. Performance: Optimize images, lazy load off-screen content
  7. Touch Targets: Maintain 44x44px minimum on mobile
  8. Logical Properties: Use inline/block for internationalization

Common Issues

  • Horizontal Overflow: Content breaking out of viewport
  • Fixed Widths: Using px instead of relative units
  • Viewport Height: 100vh issues on mobile browsers
  • Font Size: Text too small on mobile
  • Touch Targets: Buttons too small to tap accurately
  • Aspect Ratio: Images squishing or stretching
  • Z-Index Stacking: Overlays breaking on different screens
FAQ

What does 'mobile-first' mean?

It means starting the design by thinking about how it will look on the smallest screen of a mobile phone, and then adding improvements for larger screens.

What are 'container queries'?

They are like rules that make a component (a part of the page) adjust to the size of the space it's in, instead of adjusting to the total screen size.

Why is it important to test on real devices?

Simulators might not show all issues. Testing on actual phones and tablets ensures the website works perfectly for all users.

Details

Original description by the author

Implement modern responsive layouts using container queries, fluid typography, CSS Grid, and mobile-first breakpoint strategies. Use when building adaptive interfaces, implementing fluid layouts, or creating component-level responsive behavior.

repo: wshobson/agents

Popularity

GitHub stars
41k
Ranking position
#6807
License
MIT
Updated
10/15/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills