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:

  1. CSS-First v4 Configuration (Section 19) → Use @import "tailwindcss"; and @theme { } in CSS files instead of deprecated tailwind.config.js
  2. Viewport Height Units (Section 151) → Use min-h-svh (small viewport height) or min-h-dvh instead of broken mobile min-h-screen
  3. Container Query Prefix (Section 204) → Use @sm:, @md:, @lg: container prefixes for component-level responsiveness rather than viewport sm:, 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.

Installs
4
GitHub Stars
7
First Seen
Apr 26, 2026