
Tailwindcss Mobile First
Apply Tailwind CSS v4 mobile-first breakpoints, container queries, safe-area insets, and touch-or-hover patterns so responsive UI ships correctly on real devices.
Overview
tailwindcss-mobile-first is an agent skill most often used in Build (also Ship perf, Launch SEO) that applies Tailwind CSS v4 mobile-first responsive patterns, container queries, and safe-area handling.
Install
npx skills add https://github.com/josiahsiegel/claude-plugin-marketplace --skill tailwindcss-mobile-firstWhat is this skill?
- Tailwind v4 breakpoint ladder: default mobile then sm:, md:, lg:, xl:, 2xl:
- 10 proactive trigger areas including container queries, safe-area, orientation, and hover:@media
- Mobile-first utility ordering recipes (text-sm md:text-base lg:text-lg)
- hidden md:block and max-* desktop-down override patterns
- @container component-level responsiveness examples
- 10 numbered proactive activation areas in skill description
- Tailwind breakpoint set sm, md, lg, xl, 2xl documented for v4
Adoption & trust: 1.6k installs on skills.sh; 42 GitHub stars; 3/3 security scanners passed (skills.sh audits).
What problem does it solve?
You ship Tailwind layouts that look fine on desktop but break on phones because utilities were ordered desktop-first or breakpoints were guessed.
Who is it for?
Indie SaaS and marketing sites built with Tailwind v4 where most users are on mobile and you want an agent to enforce sm/md/lg ordering discipline.
Skip if: Non-Tailwind stacks, native mobile apps outside web CSS, or backend-only tasks with no responsive markup.
When should I use this skill?
PROACTIVELY for mobile-first Tailwind v4 work: breakpoints, responsive typography/grids, hide-show, max-* overrides, @container, safe-area, orientation, touch vs hover.
What do I get? / Deliverables
Components use progressive enhancement class order, documented breakpoint and container-query patterns, and device-safe spacing so mobile traffic and indexing requirements are met.
- Mobile-first class ordering on target components
- Breakpoint, container-query, and safe-area pattern references applied to the task
Recommended Skills
Journey fit
Spans multiple journey phases - primary shelf plus alternate fits below.
Frontend Build is the primary shelf because markup and utility ordering happen while implementing screens and layouts. Responsive Tailwind work is implementation-time UI craft, not distribution or analytics work in later phases.
Where it fits
Refactor a pricing grid from lg-first classes to text-sm md:text-base lg:text-lg progressive typography.
Fix CLS by applying @container rules so cards reflow inside narrow parent widths without global breakpoint hacks.
Ensure hero content is not accidentally hidden on mobile via incorrect hidden md:block ordering before indexing checks.
How it compares
Pattern library for Tailwind responsive utilities—not a Figma handoff skill and not a generic CSS grid tutorial without v4 conventions.
Common Questions / FAQ
Who is tailwindcss-mobile-first for?
Solo builders and frontend-focused agents using Tailwind CSS v4 who need consistent mobile-first breakpoints and component responsiveness.
When should I use tailwindcss-mobile-first?
During Build frontend for new UI; in Ship perf when fixing layout shift on small viewports; at Launch SEO when mobile-first indexing exposes broken responsive typography or hidden content mistakes.
Is tailwindcss-mobile-first safe to install?
It is documentation and pattern guidance without mandatory network calls—review the Security Audits panel on this page like any third-party skill before enabling in your agent.
SKILL.md
READMESKILL.md - Tailwindcss Mobile First
# Mobile-First Responsive Design (2025/2026) ## Core Philosophy Mobile-first design is the **industry standard for 2025/2026**. With mobile traffic consistently exceeding 60% of global web traffic and Google's mobile-first indexing, starting with mobile ensures optimal user experience and SEO performance. ### The Mobile-First Mindset ```html <!-- CORRECT: Mobile-first (progressive enhancement) --> <div class="text-sm md:text-base lg:text-lg"> Start small, enhance upward </div> <!-- INCORRECT: Desktop-first (graceful degradation) --> <div class="lg:text-lg md:text-base text-sm"> Starts large, reduces down (more code, more bugs) </div> ``` **Key Principle**: Unprefixed utilities apply to ALL screen sizes. Breakpoint prefixes apply at that size AND ABOVE. ## 2025/2026 Breakpoint Strategy ### Tailwind's Default Breakpoints | Prefix | Min-width | Target Devices | |--------|-----------|----------------| | (none) | 0px | All mobile phones (base) | | `sm:` | 640px (40rem) | Large phones, small tablets | | `md:` | 768px (48rem) | Tablets (portrait) | | `lg:` | 1024px (64rem) | Tablets (landscape), laptops | | `xl:` | 1280px (80rem) | Desktops | | `2xl:` | 1536px (96rem) | Large desktops | ### Content-Driven Breakpoints **Best Practice 2025/2026**: Let content determine breakpoints, not device dimensions. ```css @theme { /* Override defaults based on YOUR content needs */ --breakpoint-sm: 36rem; /* 576px - when your content needs more space */ --breakpoint-md: 48rem; /* 768px */ --breakpoint-lg: 62rem; /* 992px - common content width */ --breakpoint-xl: 75rem; /* 1200px */ --breakpoint-2xl: 90rem; /* 1440px */ /* Add custom breakpoints for specific content needs */ --breakpoint-xs: 20rem; /* 320px - very small devices */ --breakpoint-3xl: 120rem; /* 1920px - ultra-wide */ } ``` ### Screen Coverage Strategy ```html <!-- Cover the most common device ranges (2025/2026 data) --> <!-- 375px-430px: ~50% of mobile devices (iPhone, modern Android) --> <div class="px-4">Mobile base</div> <!-- 768px+: Tablets and small laptops --> <div class="px-4 md:px-6">Tablet enhancement</div> <!-- 1024px+: Desktop experience --> <div class="px-4 md:px-6 lg:px-8">Desktop enhancement</div> <!-- 1440px+: Wide desktop experience --> <div class="px-4 md:px-6 lg:px-8 xl:px-12">Wide desktop</div> ``` ## Fluid Typography System ### CSS Clamp for Smooth Scaling Fluid typography eliminates jarring size jumps between breakpoints: ```css @theme { /* Fluid typography scale */ --text-fluid-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem); --text-fluid-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem); --text-fluid-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem); --text-fluid-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem); --text-fluid-xl: clamp(1.25rem, 1rem + 1.25vw, 1.5rem); --text-fluid-2xl: clamp(1.5rem, 1.1rem + 2vw, 2rem); --text-fluid-3xl: clamp(1.875rem, 1.2rem + 3.375vw, 2.5rem); --text-fluid-4xl: clamp(2.25rem, 1rem + 6.25vw, 3.5rem); --text-fluid-5xl: clamp(3rem, 1rem + 10vw, 5rem); } ``` **Important for Accessib