secondsky avatar

Responsive Web Design

A solid reference for modern CSS layout patterns that'll save you from reinventing responsive breakpoints every time. Covers the essentials: mobile-first media queries at 640px and 1024px, CSS Grid for multi-column layouts, Flexbox for navigation, and fluid typography using clamp(). The examples are clean and copy-paste ready, which is honestly what you want when you're spinning up a new layout. Best practices section nails the basics like 48px touch targets and readable line lengths. Nothing groundbreaking here, but it's well-organized and hits the patterns you actually use in production. Good for quick consultation or sharing with junior developers who need to understand the mobile-first approach.

skills.sh installs
703
GitHub stars
248
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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

Sponsors

Details

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

More from secondsky/claude-skills

All 146
1gilbarbara avatarreact-joyridegilbarbara/react-joyrideGuide for implementing, configuring, and debugging React Joyride v3 guided tours. Use this skill whenever the user mentions joyride, guided tour, onboarding tou701skills.sh installs
2prowler-cloud avatartailwind-4prowler-cloud/prowlerTailwind CSS 4 patterns and best practices. Trigger: When styling with Tailwind (className, variants, cn()), especially when dynamic styling or CSS variables ar614skills.sh installs
3getsentry avatarsentry-react-sdkgetsentry/sentry-agent-skillsFull Sentry SDK setup for React. Use when asked to "add Sentry to React", "install @sentry/react", or configure error monitoring, tracing, session replay, profi586skills.sh installs
4oakoss avatarui-ux-polishoakoss/agent-skillsIterative UI/UX polishing workflow for web applications. Use when improving visual polish, refining desktop and mobile UX separately, running iterative enhancem559skills.sh installs
5aj-geddes avatarfrontend-testingaj-geddes/useful-ai-promptsImplement comprehensive frontend testing using Jest, Vitest, React Testing Library, and Cypress. Use when building robust test suites for UI and integration tes514skills.sh installs
6galaxy-dawn avatarui-ux-pro-maxgalaxy-dawn/claude-scholarThis skill should be used when the user asks to design or review a UI, create a landing page or dashboard, choose colors or typography, improve accessibility, o514skills.sh installs