Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
pproenca avatar

Tailwind

  • 521 installs
  • 191 repo stars
  • Updated July 24, 2026
  • pproenca/dot-skills

tailwind is an agent skill that applies 44 Tailwind CSS v4 performance and best-practice rules for developers who write, review, or refactor utility-first frontend code.

About

tailwind is a curated Agent Skills package from pproenca/dot-skills that encodes Tailwind CSS v4 performance optimization and best-practice guidance for coding agents. The skill bundles 44 rules organized across 8 impact-prioritized categories, with AGENTS.md as the compiled reference and metadata.json for version tracking. Agents load it when tasks touch Tailwind configuration, the @theme directive, utility classes, responsive design, dark mode, container queries, or CSS output size. It steers code generation and refactors toward minimal generated CSS, correct v4 feature usage, and faster builds with Vite, PostCSS, or the Tailwind CLI. Developers reach for tailwind when shipping or reviewing Tailwind-heavy React, Next.js, or static sites and need consistent v4 conventions without re-reading upstream docs each session. Install via npx skills add pproenca/dot-skills --skill tailwind. Reference files include assets/templates/_template.md for extending rules and flags costly @apply overuse, redundant PostCSS plugins, and excessive theme variables during reviews.

  • tailwind

Tailwind by the numbers

  • 521 all-time installs (skills.sh)
  • +14 installs in the week ending Aug 4, 2026 (Skillselion tracking)
  • Ranked #767 of 4,347 Backend & APIs skills by installs in the Skillselion catalog
  • Data as of Aug 4, 2026 (Skillselion catalog sync)
npx skills add https://github.com/pproenca/dot-skills --skill tailwind

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs521
repo stars191
Last updatedJuly 24, 2026
Repositorypproenca/dot-skills

How do you optimize Tailwind CSS v4 for performance?

Use tailwind for development tasks

Who is it for?

Frontend developers maintaining Tailwind CSS v4 apps who want agents to enforce performance rules during edits and reviews.

Skip if: Teams on Tailwind v3-only stacks or projects that do not use utility-first CSS should skip tailwind.

When should I use this skill?

User edits Tailwind config, @theme, utilities, responsive breakpoints, dark mode, or asks to reduce CSS bundle size.

What you get

Refactored Tailwind v4 components, leaner CSS bundles, and AGENTS.md-aligned configuration patterns.

  • Optimized utility-class components
  • Tailwind v4 configuration guidance
  • CSS bundle-size recommendations

By the numbers

  • Bundles 44 Tailwind CSS v4 rules across 8 categories
  • Includes AGENTS.md, references/_sections.md, and metadata.json reference files

Files

SKILL.mdMarkdownGitHub ↗

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)

  • `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 Optimal Performance
  • `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
  • `comp-custom-variant` - Use @custom-variant for Custom Variant Definitions

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
  • `theme-inline-static` - Use @theme inline and @theme static for Variable Control

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` - Pair Hover with Active for Touch-Friendly Interactions
  • `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

Read individual reference files for detailed explanations and code examples:

  • Section definitions - Category structure and impact levels
  • Rule template - Template for adding new rules

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

Related skills

How it compares

Pick tailwind over generic CSS skills when the codebase already uses Tailwind CSS v4 and you need impact-ranked performance rules rather than general styling advice.

FAQ

What does the tailwind skill include?

The tailwind skill includes 44 Tailwind CSS v4 rules grouped into 8 categories, plus AGENTS.md as the full compiled guide and metadata.json for reference versioning in pproenca/dot-skills.

When should agents activate tailwind?

Agents should activate tailwind when writing, reviewing, or refactoring Tailwind CSS v4 code involving configuration, @theme, utility classes, responsive design, dark mode, container queries, or CSS output optimization.

Backend & APIsbackendintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.