mcpField
T
tailwind

tailwind

github.com/pymodelDesign & UI40520 installsUpdated 4w ago
Repository

About tailwind

A Tailwind CSS v4 guide for developers, with prioritized rules for styling, performance optimization, automated refactoring, and code generation.

Key features

  1. 01Rules across eight categories
  2. 02Rules prioritized by impact
  3. 03Incorrect and correct code examples
  4. 04Guidance on builds, themes, and responsive design

Use cases

  1. 01Configure Tailwind CSS v4 build tooling
  2. 02Optimize CSS bundle size and build performance
  3. 03Migrate to CSS-first configuration

Install

Copy the command and run it in a terminal.

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

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

Bundled files

References and scripts installed along with SKILL.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
resp-logical-properties.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

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.

Comments

Markdown supported