MCPInstall

tailwind

Tailwind CSS v4 styling and configuration.

Installs
518
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/pymodel/react-frontend-skills --skill tailwind
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads tailwind automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Tailwind Labs Tailwind CSS v4 Best Practices

Comprehensive performance optimization guide for Tailwind CSS v4 applications, maintained by Tailwind Labs. Contains 42 rules across 8 categories, prioritized by impact to guide automated refactoring and code generation.

When to Apply

Reference these guidelines when:

  • Configuring Tailwind CSS v4 build tooling (Vite plugin, PostCSS, CLI)
  • Writing or migrating styles using v4's CSS-first approach
  • Optimizing CSS bundle size and build performance
  • Implementing responsive designs with breakpoints or container queries
  • Setting up theming with @theme directive and design tokens

Rule Categories by Priority

PriorityCategoryImpactPrefix
1Build ConfigurationCRITICALbuild-
2CSS GenerationCRITICALgen-
3Bundle OptimizationHIGHbundle-
4Utility PatternsHIGHutil-
5Component ArchitectureMEDIUM-HIGHcomp-
6Theming & Design TokensMEDIUMtheme-
7Responsive & AdaptiveMEDIUMresp-
8Animation & TransitionsLOW-MEDIUManim-

Quick Reference

1. Build Configuration (CRITICAL)

  • build-vite-plugin - Use Vite Plugin Over PostCSS
  • build-css-import - Use CSS Import Over @tailwind Directives
  • build-content-detection - Leverage Automatic Content Detection
  • build-node-version - Use Node.js 20+ for the upgrade tool
  • build-postcss-simplify - Remove Redundant PostCSS Plugins
  • build-cli-package - Use Correct CLI Package

2. CSS Generation (CRITICAL)

  • gen-css-first-config - Use CSS-First Configuration Over JavaScript
  • gen-avoid-theme-bloat - Avoid Excessive Theme Variables
  • gen-oklch-colors - Use OKLCH Color Space for Vivid Colors
  • gen-utility-directive - Use @utility for Custom Utilities
  • gen-dynamic-utilities - Use Dynamic Utility Values
  • gen-css-variable-syntax - Use Parentheses for CSS Variable References

3. Bundle Optimization (HIGH)

  • bundle-remove-unused-plugins - Remove Built-in Plugins
  • bundle-avoid-preprocessors - Avoid Sass/Less Preprocessors
  • bundle-css-minification - Enable CSS Minification in Production
  • bundle-avoid-cdn-production - Avoid Play CDN in Production
  • bundle-split-critical-css - Extract Critical CSS for Initial Render

4. Utility Patterns (HIGH)

  • util-renamed-utilities - Use Renamed Utility Classes
  • util-important-modifier - Use Trailing Important Modifier
  • util-variant-stacking - Use Left-to-Right Variant Stacking
  • util-explicit-colors - Use Explicit Border and Ring Colors
  • util-opacity-modifier - Use Slash Opacity Modifier
  • util-gradient-via-none - Use via-none to Reset Gradient Stops

5. Component Architecture (MEDIUM-HIGH)

  • comp-avoid-apply-overuse - Avoid Overusing @apply
  • comp-reference-directive - Use @reference for CSS Module Integration
  • comp-utility-file-scope - Understand Utility File Scope
  • comp-smart-sorting - Leverage Smart Utility Sorting
  • comp-container-customize - Customize Container with @utility

6. Theming & Design Tokens (MEDIUM)

  • theme-semantic-tokens - Use Semantic Design Token Names
  • theme-dark-mode-class - Use Class-Based Dark Mode for Control
  • theme-prefix-variables - Use Prefix for Variable Namespacing
  • theme-runtime-variables - Leverage Runtime CSS Variables
  • theme-color-scheme - Set color-scheme for Native Dark Mode

7. Responsive & Adaptive (MEDIUM)

  • resp-mobile-first - Use Mobile-First Responsive Design
  • resp-container-queries - Use Container Queries for Component-Level Responsiveness
  • resp-custom-breakpoints - Define Custom Breakpoints in @theme
  • resp-hover-capability - Understand Hover Behavior on Touch Devices
  • resp-logical-properties - Use Logical Properties for RTL Support

8. Animation & Transitions (LOW-MEDIUM)

  • anim-gpu-accelerated - Use GPU-Accelerated Transform Properties
  • anim-starting-style - Use @starting-style for Entry Animations
  • anim-gradient-interpolation - Use OKLCH Gradient Interpolation
  • anim-3d-transforms - Use Built-in 3D Transform Utilities

How to Use

Run in the project root first:

npx -y @pymodel/react-frontend-skills detect                 # installed vs. targeted versions
npx -y @pymodel/react-frontend-skills scan --skill tailwind  # deprecated APIs → rule IDs

Read references/<rule-id>.md for each rule above that matches the task and for each scan hit: why it matters, then incorrect vs. correct code.

FAQ

What does the tailwind skill do?

Tailwind CSS v4 styling and configuration.

How do I install tailwind?

Run npx skills add https://github.com/pymodel/react-frontend-skills --skill tailwind in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/tailwind/ (personal) or .claude/skills/tailwind/ (project).

Which AI agents can use tailwind?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is tailwind safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains tailwind?

It is published by pymodel in pymodel/react-frontend-skills. It has 518 recorded installs.

More from pymodel/react-frontend-skills

View all →

react

pymodel/react-frontend-skills

React 19 components and hooks.

Frontend & Design547 installs

ui-design

pymodel/react-frontend-skills

Accessible, responsive frontend UI and UX design.

Frontend & Design526 installs

typescript

pymodel/react-frontend-skills

TypeScript types, tsconfig and TypeScript 7 migration.

vitest

pymodel/react-frontend-skills

Vitest 5 unit tests and mocking.

Testing & QA490 installs

zod

pymodel/react-frontend-skills

Zod 4 schema validation and type inference.

Frontend & Design483 installs

react-hook-form

pymodel/react-frontend-skills

React Hook Form 7 forms and validation.

Frontend & Design482 installs

Popular frontend & design skills

View category →

setup-matt-pocock-skills

mattpocock/skills

Configure this repo for the engineering skills: set up its issue tracker, triage label vocabulary, and domain doc layout. Run once before first use of the other engineering skills.

Frontend & Design1.1M installs

frontend-design

anthropics/skills

Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.

OfficialFrontend & Design1M installs

hyperframes-animation

heygen-com/hyperframes

All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus Lottie, Three.js, Anime.js, CSS keyframes, Web Animations API, TypeGPU). Use for any motion or animation task: pick 2-4 rules and compose, or load a blueprint, or look up runtime-specific API (e.g. GSAP eases / Lottie player / Three.js mixer). Also covers auditing an existing composition's choreography (animation map) and 24 named text-animation effects. HyperFrames-native: single paused timeline, seek-safe, deterministic.

prototype

mattpocock/skills

Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.

Frontend & Design999.2K installs

hyperframes-core

heygen-com/hyperframes

The HyperFrames composition contract — build one renderable project. Use for composition structure, the data- timing attributes, class="clip", tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Read before writing composition HTML.

Frontend & Design930.5K installs

vercel-react-best-practices

vercel-labs/agent-skills

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

OfficialFrontend & Design843.1K installs