tailwind-patterns
Installation
SKILL.md
Tailwind CSS v4+ — CSS-First Mastery
Mandatory Pre-Flight Context Inspection
Before engineering Tailwind CSS styles or themes, you MUST inspect:
- CSS-First v4 Configuration (Section 19) → Use
@import "tailwindcss";and@theme { }in CSS files instead of deprecatedtailwind.config.js - Viewport Height Units (Section 151) → Use
min-h-svh(small viewport height) ormin-h-dvhinstead of broken mobilemin-h-screen - Container Query Prefix (Section 204) → Use
@sm:,@md:,@lg:container prefixes for component-level responsiveness rather than viewportsm:,md:,lg:
Activation Boundaries
- Activate when: Operating in tasks requiring Tailwind CSS v4+ mastery. CSS-first configuration, @theme directive, container queries, scroll-driven animations, logical properties, clamp(), fluid typography, responsive design, dark mode, custom variants, component extraction, and performance optimization. Use when styling with Tailwind, building design systems, or optimizing CSS output..
- DO NOT activate when: The task falls strictly outside tailwind-patterns domain or belongs to a different dedicated specialist.