📘

Responsive Design

Adapt gracefully across viewports.

v1 design curated
🤖

Install 安装

curl -sSL https://updating.cc/skills/design/responsive-design/SKILL.md -o ~/.agents/skills/design__responsive-design/SKILL.md

SKILL.md Preview 技能内容预览

---
name: Responsive Design
description: Adapt gracefully across viewports.
---
# Responsive Design

Design one fluid system that adapts, not N fixed breakpoint layouts. Content should reflow sensibly from 320px to 1920px without bespoke work per width.

## Approach
- **Mobile-first.** Write the base for the smallest target, then add capability with min-width media queries. This keeps the small screen lean instead of subtracting from a desktop design.
- **Fluid type and spacing.** `clamp(min, preferred, max)` lets type scale with viewport without snapping. Avoid magic pixel widths that break between breakpoints.
- **Content-based breakpoints.** Break when the *content* looks wrong, not at device widths. Devices change; line-length problems don't.
- **Touch targets ≥ 44px.** Fingers are blunt. Packed tap targets on mobile cause mis-taps.