New advertisers: 50% off your first month with code FIRSTMONTHSee slots
hoodini avatar

Mobile Responsiveness

Reusable patterns for mobile-first responsive layouts, fluid type, touch gestures, and mobile navigation.

skills.sh installs
1.4K
GitHub stars
302
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers mobile-first CSS breakpoints at 768px, 1024px, and 1280px, with Tailwind equivalents using md:, lg:, and xl: prefixes
  • Includes fluid clamp() typography, a swipeable card with touch handlers, and a hamburger mobile nav with a backdrop
  • Adds safe-area env() padding for notched devices and a useMediaQuery React hook built on matchMedia
  • Designed for React and Tailwind web apps that need layouts to adapt across phone, tablet, and desktop screens

Install

$ npx -y skills add hoodini/ai-agents-skills --skill mobile-responsiveness -y

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

Files

Mobile Responsiveness

Build responsive, mobile-first web applications.

Mobile-First Breakpoints

/* Mobile first - no media query needed for mobile base */
.container {
  padding: 1rem;
}

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

/* Desktop */
@media (min-width: 1024px) {
  .container {
    padding: 3rem;
    max-width: 1200px;
    margin: 0 auto;
  }
}

/* Large desktop */
@media (min-width: 1280px) {
  .container {
    max-width: 1400px;
  }
}

Tailwind Breakpoints

<div className="
  p-4          /* Mobile: padding 1rem */
  md:p-8       /* Tablet 768px+: padding 2rem */
  lg:p-12      /* Desktop 1024px+: padding 3rem */
  xl:max-w-6xl /* Large 1280px+: max-width */
">
  <h1 className="
    text-2xl     /* Mobile */
    md:text-3xl  /* Tablet */
    lg:text-4xl  /* Desktop */
  ">
    Responsive Heading
  </h1>
</div>

Fluid Typography

:root {
  /* Fluid font size: 16px at 320px viewport, 20px at 1200px viewport */
  --font-size-base: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  
  /* Fluid heading */
  --font-size-h1: clamp(2rem, 1.5rem + 2.5vw, 4rem);
}

Details

Repository
github.com/hoodini/ai-agents-skills
Categories
Frontend & UI Code, Design & UI/UX
First seen
May 16, 2026

More from hoodini/ai-agents-skills

All 35

Similar to Mobile Responsiveness

More Frontend & UI Code