/tailwind:tailwind-best-practicesfrom tailwind
Provides Tailwind CSS v4 guidance covering utility-first patterns, @theme/@source directives, dark mode, responsive design, oklch colors, custom variants, and v3-to-v4 migration. Activates when users write Tailwind classes or configure v4 syntax.
Ships in tailwind. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use the bundled references for Tailwind CSS v4 guidance. Consult the linked official documentation when current upstream behavior matters.
Read the relevant file for detailed patterns, code examples, and documentation URLs:
docs-urls.md — Official Documentation URLsURL tables organized by category (Getting Started, Core Concepts, Layout, Spacing, Sizing, Typography, Backgrounds & Borders, Effects, Transforms & Animation, Interactivity). Use with WebFetch when current upstream behavior needs verification.
v4-syntax.md — Tailwind CSS v4 Core SyntaxCRITICAL: v4 changed significantly from v3. Covers @import "tailwindcss", @theme directive for CSS-based configuration (colors, fonts, spacing), @source for detection, class-based @custom-variant dark plus .dark selectors, @layer components for extraction, and @plugin for plugins.
best-practices.md — Best PracticesClass ordering convention (layout → spacing → sizing → typography → colors → effects → interactive), responsive design (mobile-first, breakpoint reference), component extraction rule (3+ times), theme variables over hardcoded values, accessibility (focus-visible, sr-only, contrast).
anti-patterns.md — v4 Anti-Patternsv3 → v4 migration table (tailwind.config.js → @theme, @tailwind → @import, etc.), common mistakes (inline styles, px values, duplicate/conflicting utilities).
quick-reference.md — Quick ReferenceResponse guidelines for helping with Tailwind, example response flow, spacing scale table, common utility patterns (centered content, card, responsive grid, truncation, gradient, fixed header).
For the latest documentation, always refer to https://tailwindcss.com/docs
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub gopherguides/gopher-ai --plugin tailwind5 skills in this plugin
/auditAudits Tailwind CSS projects for consistency, performance, accessibility, and v4 compliance. Use for Tailwind health checks and actionable reports; use --fix only when changes are requested./initInitializes Tailwind CSS v4 in an existing project, including dependencies, CSS entry points, and build integration. Invoke explicitly when setup changes are requested./migrateMigrates Tailwind CSS v3 projects to v4 CSS-based configuration and verifies the result. Invoke explicitly for migration changes; use --check for a read-only preview.Other plugins' skills for the same job