Skillshub tailwind

Community Tailwind CSS v4 Best Practices

install
source · Clone the upstream repo
git clone https://github.com/ComeOnOliver/skillshub
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ComeOnOliver/skillshub "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/pproenca/dot-skills/tailwind" ~/.claude/skills/comeonoliver-skillshub-tailwind && rm -rf "$T"
manifest: skills/pproenca/dot-skills/tailwind/SKILL.md
source content

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 ConfigurationCRITICAL
build-
2CSS GenerationCRITICAL
gen-
3Bundle OptimizationHIGH
bundle-
4Utility PatternsHIGH
util-
5Component ArchitectureMEDIUM-HIGH
comp-
6Theming & Design TokensMEDIUM
theme-
7Responsive & AdaptiveMEDIUM
resp-
8Animation & TransitionsLOW-MEDIUM
anim-

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