Skip to content
secondsky avatar

Responsive Web Design

Mobile-first CSS guide that builds adaptive layouts with Flexbox, Grid, media queries, and fluid type.

CCM score
53 of 100
skills.sh installs
731
GitHub stars
257
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers media-query breakpoints at 640px, 768px, and 1024px, with fluid typography and responsive image sizing
  • Includes code patterns for a container, a multi-column grid, a flexbox navigation bar, and a 16:9 hero image
  • Enforces practices such as 48px minimum touch targets, 45 to 75 character line lengths, and Grid for 2D layouts
  • Designed for developers building multi-device layouts who need concrete CSS patterns to adapt from

Install

$ npx -y skills add secondsky/claude-skills --skill responsive-web-design -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Responsive Web Design

Build adaptive interfaces using modern CSS techniques for all screen sizes.

Mobile-First Media Queries

/* Base: Mobile (320px+) */
.container {
  padding: 1rem;
}

/* Tablet (640px+) */
@media (min-width: 640px) {
  .container {
    padding: 2rem;
    max-width: 640px;
    margin: 0 auto;
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}

Flexible Grid

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr; /* Mobile: single column */
}

@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(2, 1fr); /* Tablet: 2 columns */
  }
}

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(3, 1fr); /* Desktop: 3 columns */
  }
}

Fluid Typography

/* Scales smoothly between breakpoints */
h1 {
  font-size: clamp(1.5rem, 4vw, 3rem);
}

p {
  font-size: clamp(1rem, 2vw, 1.25rem);
}

Responsive Images

img {
  max-width: 100%;
  height: auto;
}

.hero-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

Flexbox Navigation

Details

Repository
github.com/secondsky/claude-skills
Categories
Frontend & UI Code, Design & UI/UX
First seen
Jun 3, 2026

Questions

What does the responsive-web-design skill do?

The responsive-web-design skill builds adaptive web interfaces using Flexbox, CSS Grid, and media queries with a mobile-first approach. It covers multi-device layouts, flexible grids, fluid typography, responsive images and flexbox navigation.

How do I install the responsive-web-design skill?

Run npx -y skills add secondsky/claude-skills --skill responsive-web-design -y in a project to install it. After that, the agent can write mobile-first media queries and flexible CSS grid layouts for your pages.

Which skills lead the Frontend & UI Code category next to responsive-web-design?

In the Frontend & UI Code category, responsive-web-design sits alongside vercel-react-best-practices, web-design-guidelines, design-taste-frontend, vercel-composition-patterns and lark-apps. Its focus is CSS layout for screen sizes rather than React patterns or design guidance.

When should I use the responsive-web-design skill?

Use responsive-web-design when you are creating multi-device layouts, implementing flexible UI systems or ensuring cross-browser compatibility. It also gives guidance such as a minimum 48px touch target and line lengths of 45 to 75 characters.

More from secondsky/claude-skills

All 116

Similar to Responsive Web Design

More Frontend & UI Code