secondsky avatar

Mobile First Design

A solid foundation for building responsive sites the right way, starting at 320px and scaling up through clear breakpoints. You get sensible defaults like 48px touch targets, progressive enhancement patterns, and performance budgets that actually matter (under 3s FCP on 3G). The CSS examples show proper min-width media queries instead of the old max-width approach, and it pushes you toward semantic HTML that works before JavaScript loads. Nothing groundbreaking here, but it's the kind of practical reference that keeps you from making rookie mistakes like forgetting adequate spacing or shipping bloated bundles to mobile users.

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

Install

$ npx -y skills add secondsky/claude-skills --skill mobile-first-design --agent claude-code

Installs into .claude/skills of the current project.

Files

Mobile-First Design

Design interfaces starting with mobile as the foundation, then enhance for larger screens.

Breakpoints

NameWidthDevices
Mobile320-480pxiPhone SE, small Android
Tablet481-768pxiPad mini
Desktop769-1024pxiPad Pro, laptops
Large1025px+Desktop monitors

Mobile-First CSS

/* Base styles (mobile) */
.container {
  padding: 1rem;
}

.nav {
  display: none; /* Hidden on mobile */
}

.nav-toggle {
  display: block; /* Hamburger visible */
}

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

  .nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }
}

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

Touch-Friendly Design

/* Minimum touch target: 48x48px */
.button {
  min-height: 48px;
  min-width: 48px;
  padding: 12px 24px;
}

/* Adequate spacing */
.list-item {
  padding: 16px;
  margin-bottom: 8px;
}

Performance Requirements

Sponsors

Details

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

More from secondsky/claude-skills

All 146
1bobmatnyc avatartanstack-querybobmatnyc/claude-mpm-skillsTanStack Query (React Query) for asynchronous server-state management with automatic caching, background refetching, optimistic updates, and pagination in React595skills.sh installs
2openai avatarslidesopenai/skillsCreate and edit presentation slide decks (`.pptx`) with PptxGenJS, bundled layout helpers, and render/validation utilities. Use when tasks involve building a ne589skills.sh installs
3anthropics avatarinteractive-dashboard-builderanthropics/knowledge-work-pluginsBuild self-contained interactive HTML dashboards with Chart.js, dropdown filters, and professional styling. Use when creating dashboards, building interactive r586skills.sh installs
4alirezarezvani avatarspec-to-repoalirezarezvani/claude-skillsUse when the user says 'build me an app', 'create a project from this spec', 'scaffold a new repo', 'generate a starter', 'turn this idea into code', 'bootstrap578skills.sh installs
5uview-pro avataruview-prouview-pro/skillsuView Pro 组件库完整技能集。Invoke when user needs to use uView Pro components, tools, hooks or layouts in uni-app project.575skills.sh installs
6auth0 avatarauth0-expoauth0/agent-skillsUse when adding Auth0 login, logout, or session management to an Expo app. Integrates react-native-auth0 with the Expo Config Plugin for native iOS/Android buil555skills.sh installs