This is a comprehensive rulebook for Tailwind CSS v4 with 44 rules organized by performance impact, from critical build configuration down to animation tweaks. You'd pull this in when setting up v4 projects, migrating from v3, or optimizing bundle sizes. It covers the CSS-first approach, the new @theme directive, OKLCH colors, and v4-specific syntax like parentheses for CSS variables. The priority system is genuinely useful because it tells you what actually matters for build performance versus what's just polish. Each rule links to detailed examples, though the real value is having someone distill v4's breaking changes and new patterns into actionable guidance instead of hunting through release notes.

skills.sh installs
657
GitHub stars
222
last updated
Aug 21, 2026

Install

$ npx -y skills add pproenca/dot-skills --skill tailwind --agent claude-code

Installs into .claude/skills of the current project.

Files

Community Tailwind CSS v4 Best Practices

Comprehensive performance optimization guide for Tailwind CSS v4 applications. Contains 44 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)

Sponsors

Details

Repository
github.com/pproenca/dot-skills
Categories
Frontend Development, DevOps & CI/CD, Documentation, Code Review & Quality, Debugging, Design & UI/UX
First seen
Jun 3, 2026

More from pproenca/dot-skills

All 100
1mrgoonie avatarui-stylingmrgoonie/claudekit-skillsCreate beautiful, accessible user interfaces with shadcn/ui components (built on Radix UI + Tailwind), Tailwind CSS utility-first styling, and canvas-based visu645skills.sh installs
2davila7 avatarfrontend-patternsdavila7/claude-code-templatesFrontend development patterns for React, Next.js, state management, performance optimization, and UI best practices.638skills.sh installs
3plugin87 avatardesign-componentplugin87/ux-ui-agent-skillsDesign a UI component spec to the house quality bar — anatomy, variants, sizes, the 8 states, token mapping, and accessibility. Use when the user wants to desig565skills.sh installs
4bnd-1 avatardesign-taste-frontendbnd-1/taste-skillSenior UI/UX Engineer. Architect digital interfaces overriding default LLM biases. Enforces metric-based rules, strict component architecture, CSS hardware acce557skills.sh installs
5bobmatnyc avatarzustandbobmatnyc/claude-mpm-skillsMinimal, unopinionated state management library for React with simple hook-based API, no providers, and minimal boilerplate for global state without Redux compl496skills.sh installs
6pproenca avatarreactpproenca/dot-skillsReact 19/19.2 modern patterns for concurrent rendering, Server Components, actions, ref-as-prop, document metadata, resource hints, hooks, and memoization — plu496skills.sh installs