hoodini avatar

Mobile Responsiveness

Covers the essentials for building mobile-first interfaces without making you hunt through docs. You get standard breakpoint patterns in both vanilla CSS and Tailwind, fluid typography with clamp, a swipeable component with touch event handling, and a solid mobile nav pattern with backdrop. The safe area insets section is especially useful if you're dealing with iOS notches and home indicators. Includes a useMediaQuery hook that actually handles cleanup properly. It's all copy-paste ready code rather than theory, which is what you want when you're just trying to make something work across screen sizes. The mobile-first approach is baked into the examples, so you're not retrofitting responsiveness later.

skills.sh installs
1.4K
GitHub stars
296
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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);
}

Sponsors

Details

Repository
github.com/hoodini/ai-agents-skills
Categories
Frontend Development, DevOps & CI/CD, AI & Agent Building, Mobile Development, Design & UI/UX, CLI & Terminal
First seen
May 16, 2026

More from hoodini/ai-agents-skills

All 37
1hyperb1iss avatartui-designhyperb1iss/hyperskillsThis skill should be used when designing terminal user interfaces, creating TUI layouts, choosing TUI color schemes, implementing keyboard navigation, building 1.3Kskills.sh installs
2hyva-themes avatarhyva-child-themehyva-themes/hyva-ai-toolsCreate a Hyvä child theme in a Magento 2 project. This skill should be used when the user wants to create a new Hyvä child theme, set up a custom theme based on1.3Kskills.sh installs
3bowtiedswan avataranimejsbowtiedswan/animejs-skillsComprehensive skill for Anime.js v4 - a fast and flexible JavaScript animation library. This skill should be used when implementing web animations, creating tim1.3Kskills.sh installs
4vercel-labs avatarinkvercel-labs/json-renderInk terminal renderer for json-render that turns JSON specs into interactive terminal UIs. Use when working with @json-render/ink, building terminal UIs from JS1.3Kskills.sh installs
5charleswiltgen avataraxiom-uikitcharleswiltgen/axiomUse when bridging UIKit and SwiftUI, modernizing UIKit apps (scene lifecycle, resizability), debugging Auto Layout, Combine, TextKit, PencilKit, or UIKit animat1.3Kskills.sh installs
6github avatarreact19-test-patternsgithub/awesome-copilotProvides before/after patterns for migrating test files to React 19 compatibility, including act() imports, Simulate removal, and StrictMode call count changes.1.3Kskills.sh installs