responsive-design

Implements responsive design with container queries, fluid typography, and CSS Grid.

38.6k|4.1k|Updated Jul 24, 2025
One-click install
npx skills add https://github.com/wshobson/agents --skill responsive-design-wshobson
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: responsive-design
Source: https://github.com/wshobson/agents/tree/main/plugins/ui-design/skills/responsive-design
Command: npx skills add https://github.com/wshobson/agents --skill responsive-design-wshobson

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill enables the creation of user interfaces that adapt seamlessly to any screen size or device, ensuring a consistent and optimal user experience across all platforms.

Core Features & Use Cases

  • Container Queries: Implement component-level responsiveness independent of the viewport.
  • Fluid Typography & Spacing: Scale text and spacing dynamically based on screen size.
  • Advanced Layouts: Utilize CSS Grid and Flexbox for complex, adaptive layouts.
  • Use Case: When designing a product card that needs to display differently on a mobile phone, a tablet, and a desktop, this skill provides the tools to make it adapt gracefully.

Quick Start

Implement a responsive card component using container queries and fluid typography.

Frequently Asked Questions about responsive-design

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I use container queries for component-level responsive design?

Container queries enable component-level responsive design by allowing elements to adapt based on their parent container's size rather than the viewport. This skill implements them to build adaptive layouts where individual components respond independently to their surrounding layout context.

What is fluid typography and how does it scale text across screen sizes?

Fluid typography scales text dynamically across screen sizes using CSS viewport units and clamp functions. This skill implements fluid typography and spacing to ensure text adapts gracefully without requiring discrete breakpoint adjustments for every device width.

How do I build adaptive layouts with CSS Grid and mobile-first breakpoints?

Adaptive layouts with CSS Grid and mobile-first breakpoints are built by defining base styles for small screens first, then progressively enhancing them at wider breakpoints. This skill utilizes CSS Grid and Flexbox to create complex, adaptive layouts that adjust gracefully across devices.

When should I use container queries instead of media queries for responsive UI?

Container queries should be used instead of media queries when a component needs to adapt based on its container's dimensions rather than the viewport. This skill focuses on container queries to achieve component-level responsiveness independent of the overall screen size.

Do I need advanced CSS knowledge to implement modern responsive design principles?

Yes, implementing modern responsive design principles requires an understanding of CSS layout modules and responsive design patterns. This skill focuses on advanced techniques like container queries, fluid typography, and CSS Grid to build adaptive user interfaces.

Why does my responsive card component display differently on mobile and desktop?

A responsive card component displays differently across devices when it lacks adaptive layout rules. This skill provides the tools to make product cards adapt gracefully using container queries and fluid typography for optimal viewing on mobile phones, tablets, and desktops.