# Responsive Design

> Create web interfaces that work well across all device sizes and orientations. Use when this capability is needed.

- Skill: `tomevault-io/responsive-design-5` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/responsive-design-5`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/responsive-design-5/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/responsive-design-5

---


# Responsive Design Skill

## Purpose
Create web interfaces that work well across all device sizes and orientations.

## Core Principles

### 1. Mobile-First
Design for mobile first, then enhance for larger screens.

```css
/* Mobile styles (default) */
.container { padding: 1rem; }

/* Tablet and up */
@media (min-width: 768px) {
  .container { padding: 2rem; }
}

/* Desktop and up */
@media (min-width: 1024px) {
  .container { padding: 3rem; max-width: 1200px; }
}
```

### 2. Fluid Layouts
Use relative units and flexible containers.

```css
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 3rem);
}
```

### 3. Responsive Images

```html
<picture>
  <source media="(min-width: 1024px)" srcset="large.jpg">
  <source media="(min-width: 768px)" srcset="medium.jpg">
  <img src="small.jpg" alt="Description">
</picture>
```

## Breakpoints

| Name | Min Width | Target |
|------|-----------|--------|
| sm | 640px | Large phones |
| md | 768px | Tablets |
| lg | 1024px | Laptops |
| xl | 1280px | Desktops |
| 2xl | 1536px | Large screens |

## Testing Checklist

- [ ] Test on actual devices, not just browser resize
- [ ] Check touch targets (min 44x44px)
- [ ] Verify text readability at all sizes
- [ ] Test landscape and portrait orientations
- [ ] Check for horizontal scroll issues

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/hffmnnj) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-11 -->

