responsive-design

Apply container queries, fluid typography, and grid/flex layouts for responsive UI.

1|Updated Nov 9, 2024
One-click install
npx skills add https://github.com/marnec/ripple --skill responsive-design-marnec
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: responsive-design
Source: https://github.com/marnec/ripple/tree/main/.claude/skills/responsive-design
Command: npx skills add https://github.com/marnec/ripple --skill responsive-design-marnec

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Designers and developers often struggle to create interfaces that adapt smoothly across devices without rewriting layouts for each breakpoint.

Core Features & Use Cases

  • Container queries for component-level responsiveness
  • Fluid typography and spacing with clamp() and responsive tokens
  • CSS Grid and Flexbox patterns for robust, scalable layouts
  • Breakpoint strategies based on content instead of devices
  • Use Case: building a design system component library that adapts to parent container sizes

Quick Start

Create a minimal HTML/CSS example that demonstrates a container-query-driven card with fluid text.

Frequently Asked Questions about responsive-design

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

FAQPage Schema
How do I build responsive UI with container queries for component-level adaptivity?

To build responsive UI with container queries, you apply CSS container query rules to parent elements, enabling child components to adapt their layouts based on the parent container's available width rather than the entire viewport. This approach ensures true component-level responsiveness in design systems.

What is fluid typography and how does clamp() create scalable text?

Fluid typography uses the CSS clamp() function to dynamically scale font sizes between defined minimum and maximum boundaries based on viewport width. This creates smooth, responsive text transitions without requiring multiple media query breakpoints.

Does CSS Grid work with mobile-first breakpoint strategies for adaptive layouts?

Yes, CSS Grid works effectively with mobile-first breakpoint strategies by defining base layout styles for smaller screens first, then progressively enhancing grid template columns and areas as viewport width increases. This ensures robust, scalable layouts across all devices.

Can I use container queries to build a design system component library that adapts to parent sizes?

Yes, you can use container queries to build a design system component library that adapts to parent container sizes. Components query their immediate parent's dimensions, allowing them to render correctly regardless of where they are placed in the layout.

Why does my responsive layout break when embedding a component in a narrower sidebar?

Responsive layouts often break in narrow sidebars because traditional media queries respond to the viewport, not the parent container. Applying container queries allows the component to detect the sidebar's restricted width and adjust its internal layout accordingly.