advanced-responsive-design

Implements responsive web layouts using container queries, fluid typography, and CSS Grid.

Updated Jun 30, 2026
One-click install
npx skills add https://github.com/kaitoartz/dotfiles --skill advanced-responsive-design-kaitoartz
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: advanced-responsive-design
Source: https://github.com/kaitoartz/dotfiles/tree/main/dot_gemini/config/skills/advanced-responsive-design
Command: npx skills add https://github.com/kaitoartz/dotfiles --skill advanced-responsive-design-kaitoartz

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Websites often break or look inconsistent across devices ranging from smartwatches to ultra-wide monitors, and traditional viewport-based media queries fail when components are reused in containers of different widths. ## Core Features & Use Cases - Fluid Typography and Spacing: Uses clamp() and viewport units so text and spacing scale smoothly without multiple breakpoints. - Container Queries: Designs components with @container so cards and widgets adapt to their parent width instead of the screen size. - Adaptive Media Handling: Applies aspect-ratio, <picture>, srcset, and object-fit to prevent layout shift and serve correctly sized images. - Use Case: You are building a card component that must look correct both in a narrow sidebar and a wide main grid. This Skill guides you to replace global media queries with container queries and fluid sizing so the component adapts anywhere. ## Quick Start Use the advanced-responsive-design skill to refactor my card component CSS to use container queries and fluid typography.

Frequently Asked Questions about advanced-responsive-design

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

FAQPage Schema
How do I use container queries in CSS?▼

Container queries use the @container rule to style components based on their parent container's width instead of the viewport. Define a containment context on the parent, then write @container rules inside the component so it adapts wherever it is placed.

How to create fluid typography without media queries?▼

Fluid typography uses the CSS clamp() function with a minimum, preferred, and maximum value, such as font-size: clamp(1rem, 5vw, 2rem). The text scales smoothly with the viewport between the bounds without any breakpoints.

Container queries vs media queries, which should I use?▼

Use container queries for component-level adaptation, such as a card that must work in both a sidebar and a main grid. Use media queries for macro layout changes tied to the overall screen size, like switching from one column to three.

How do I prevent layout shift from images?▼

Reserve space before images load by setting the CSS aspect-ratio property on the image or its container. Also ensure images use max-width: 100% and height: auto, and serve appropriately sized sources with srcset and the picture element.

What is the recommended touch target size for mobile?▼

Interactive elements should have touch targets of at least 44px to 48px so they are easy to tap with a finger. Consider the thumb zone when placing navigation, such as using bottom navigation bars on mobile devices.