mcpField
T
tailwind

tailwind

github.com/thongdn-itDesign & UI5136 installsUpdated 40w ago
Repository

About tailwind

tailwind is a Tailwind CSS v4 performance guide maintained by Tailwind Labs, intended for developers configuring, migrating, or optimizing v4 applications. Its 42 prioritized rules cover build setup, CSS generation, bundles, utilities, components, theming, responsive design, and animation.

Key features

  1. 0142 prioritized Tailwind CSS v4 rules
  2. 02Eight performance and styling categories
  3. 03Build-tool and CSS generation guidance
  4. 04Bundle and utility optimization
  5. 05Responsive design and animation guidance

Use cases

  1. 01Configure Tailwind CSS v4 build tooling
  2. 02Migrate styles to the CSS-first approach
  3. 03Optimize CSS bundle size and build performance
  4. 04Set up themes, breakpoints, or container queries

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/thongdn-it/react-agent-skills --skill tailwind

After installing, type/tailwindin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

AGENTS.md
references/
anim-3d-transforms.md
anim-gpu-accelerated.md
anim-gradient-interpolation.md
anim-starting-style.md
build-cli-package.md
build-content-detection.md
build-css-import.md
build-node-version.md
build-postcss-simplify.md
build-vite-plugin.md
bundle-avoid-cdn-production.md
bundle-avoid-preprocessors.md
bundle-css-minification.md
bundle-remove-unused-plugins.md
bundle-split-critical-css.md
comp-avoid-apply-overuse.md
comp-container-customize.md
comp-reference-directive.md
comp-smart-sorting.md
comp-utility-file-scope.md
gen-avoid-theme-bloat.md
gen-css-first-config.md
gen-css-variable-syntax.md
gen-dynamic-utilities.md
gen-oklch-colors.md
gen-utility-directive.md
resp-container-queries.md
resp-custom-breakpoints.md
resp-hover-capability.md

Details

From the project README

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)
2. CSS Generation (CRITICAL)
3. Bundle Optimization (HIGH)
4. Utility Patterns (HIGH)
5. Component Architecture (MEDIUM-HIGH)
6. Theming & Design Tokens (MEDIUM)
7. Responsive & Adaptive (MEDIUM)
8. Animation & Transitions (LOW-MEDIUM)

How to Use

Read individual reference files for detailed explanations and code examples:

Full Compiled Document

For a complete guide with all rules expanded, see AGENTS.md.

Reference Files

FileDescription
AGENTS.mdComplete compiled guide with all rules
references/_sections.mdCategory definitions and ordering
assets/templates/_template.mdTemplate for new rules
metadata.jsonVersion and reference information

Comments

Markdown supported