tailwind▌
pproenca/dot-skills · updated May 24, 2026
MDX-style export adds YAML metadata + attribution linking explainx.ai and this canonical listing URL.
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.
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
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Build Configuration | CRITICAL | build- |
| 2 | CSS Generation | CRITICAL | gen- |
| 3 | Bundle Optimization | HIGH | bundle- |
| 4 | Utility Patterns | HIGH | util- |
| 5 | Component Architecture | MEDIUM-HIGH | comp- |
| 6 | Theming & Design Tokens | MEDIUM | theme- |
| 7 | Responsive & Adaptive | MEDIUM | resp- |
| 8 | Animation & Transitions | LOW-MEDIUM | anim- |
Quick Reference
1. Build Configuration (CRITICAL)
build-vite-plugin- Use Vite Plugin Over PostCSSbuild-css-import- Use CSS Import Over @tailwind Directivesbuild-content-detection- Leverage Automatic Content Detectionbuild-node-version- Use Node.js 20+ for Optimal Performancebuild-postcss-simplify- Remove Redundant PostCSS Pluginsbuild-cli-package- Use Correct CLI Package
2. CSS Generation (CRITICAL)
gen-css-first-config- Use CSS-First Configuration Over JavaScriptgen-avoid-theme-bloat- Avoid Excessive Theme Variablesgen-oklch-colors- Use OKLCH Color Space for Vivid Colorsgen-utility-directive- Use @utility for Custom Utilitiesgen-dynamic-utilities- Use Dynamic Utility Valuesgen-css-variable-syntax- Use Parentheses for CSS Variable References
3. Bundle Optimization (HIGH)
bundle-remove-unused-plugins- Remove Built-in Pluginsbundle-avoid-preprocessors- Avoid Sass/Less Preprocessorsbundle-css-minification- Enable CSS Minification in Productionbundle-avoid-cdn-production- Avoid Play CDN in Productionbundle-split-critical-css- Extract Critical CSS for Initial Render
4. Utility Patterns (HIGH)
util-renamed-utilities- Use Renamed Utility Classesutil-important-modifier- Use Trailing Important Modifierutil-variant-stacking- Use Left-to-Right Variant Stackingutil-explicit-colors- Use Explicit Border and Ring Colorsutil-opacity-modifier- Use Slash Opacity Modifierutil-gradient-via-none- Use via-none to Reset Gradient Stops
5. Component Architecture (MEDIUM-HIGH)
comp-avoid-apply-overuse- Avoid Overusing @applycomp-reference-directive- Use @reference for CSS Module Integrationcomp-utility-file-scope- Understand Utility File Scopecomp-smart-sorting- Leverage Smart Utility Sortingcomp-container-customize- Customize Container with @utilitycomp-custom-variant- Use @custom-variant for Custom Variant Definitions
6. Theming & Design Tokens (MEDIUM)
theme-semantic-tokens- Use Semantic Design Token Namestheme-dark-mode-class- Use Class-Based Dark Mode for Controltheme-prefix-variables- Use Prefix for Variable Namespacingtheme-runtime-variables- Leverage Runtime CSS Variablestheme-color-scheme- Set color-scheme for Native Dark Modetheme-inline-static- Use @theme inline and @theme static for Variable Control
7. Responsive & Adaptive (MEDIUM)
resp-mobile-first- Use Mobile-First Responsive Designresp-container-queries- Use Container Queries for Component-Level Responsivenessresp-custom-breakpoints- Define Custom Breakpoints in @themeresp-hover-capability- Pair Hover with Active for Touch-Friendly Interactionsresp-logical-properties- Use Logical Properties for RTL Support
8. Animation & Transitions (LOW-MEDIUM)
anim-gpu-accelerated- Use GPU-Accelerated Transform Propertiesanim-starting-style- Use @starting-style for Entry Animationsanim-gradient-interpolation- Use OKLCH Gradient Interpolationanim-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
| File | Description |
|---|---|
| AGENTS.md | Complete compiled guide with all rules |
| references/_sections.md | Category definitions and ordering |
| assets/templates/_template.md | Template for new rules |
| metadata.json | Version and reference information |
How to use tailwind on Cursor
AI-first code editor with Composer
Prerequisites
Before installing skills in Cursor, ensure your development environment meets these requirements:
- ›Cursor installed and configured on your development machine
- ›Node.js version 16.0+ with npm package manager (verify with
node --version) - ›Active project directory or workspace where you want to add tailwind
Execute installation command
Execute the skills CLI command in your project's root directory to begin installation:
The skills CLI fetches tailwind from GitHub repository pproenca/dot-skills and configures it for Cursor.
Select Cursor when prompted
The CLI will show a list of available agents. Use arrow keys to navigate and space to select Cursor:
Verify installation
Confirm successful installation by checking the skill directory location:
Reload or restart Cursor to activate tailwind. Access the skill through slash commands (e.g., /tailwind) or your agent's skill management interface.
Security & Verification Notice
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your development environment. Always verify the publisher's identity, review recent commits, and test in isolated environments before production deployment.
List & Monetize Your Skill
Submit your Claude Code skill and start earning
Use Cases▌
Task Automation & Efficiency
Automate repetitive workflows and reduce manual effort
Example
Generate reports, summarize documents, draft communications
Save 3-5 hours per week on routine tasks
Knowledge Enhancement
Learn new skills, understand complex topics, get expert guidance
Example
Explain concepts, provide examples, suggest learning resources
Accelerate learning and skill development by 2x
Quality Improvement
Enhance output quality through reviews, suggestions, and refinements
Example
Review drafts, suggest improvements, catch errors
Improve work quality by 30-40% with less effort
Implementation Guide▌
Prerequisites
- ›Claude Desktop or compatible AI client with skill support
- ›Clear understanding of task or problem to solve
- ›Willingness to iterate and refine outputs
Time Estimate
15-45 minutes depending on use case complexity
Installation Steps
- 1.Install skill using provided installation command
- 2.Test with simple use case relevant to your work
- 3.Evaluate output quality and relevance
- 4.Iterate on prompts to improve results
- 5.Integrate into regular workflow if valuable
Common Pitfalls
- ⚠Expecting perfect results without iteration
- ⚠Not providing enough context in prompts
- ⚠Using skill for tasks outside its intended scope
- ⚠Accepting outputs without review and validation
Best Practices▌
✓ Do
- +Start with clear, specific prompts
- +Provide relevant context and constraints
- +Review and refine all outputs before using
- +Iterate to improve output quality
- +Document successful prompt patterns
✗ Don't
- −Don't use without understanding skill limitations
- −Don't skip validation of outputs
- −Don't share sensitive information in prompts
- −Don't expect skill to replace human judgment
💡 Pro Tips
- ★Be specific about desired format and style
- ★Ask for multiple options to choose from
- ★Request explanations to understand reasoning
- ★Combine AI efficiency with human expertise
When to Use This▌
✓ Use When
Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.
✗ Avoid When
Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.
Learning Path▌
- 1Familiarize yourself with skill capabilities and limitations
- 2Start with low-risk, non-critical tasks
- 3Progress to more complex and valuable use cases
- 4Build expertise through regular use and experimentation
Discussion
Product Hunt–style comments (not star reviews)- No comments yet — start the thread.
Ratings
4.4★★★★★44 reviews- ★★★★★Anaya Lopez· Dec 28, 2024
I recommend tailwind for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
- ★★★★★Meera Martinez· Dec 16, 2024
Solid pick for teams standardizing on skills: tailwind is focused, and the summary matches what you get after install.
- ★★★★★Aisha Zhang· Dec 12, 2024
tailwind reduced setup friction for our internal harness; good balance of opinion and flexibility.
- ★★★★★Diego Li· Nov 19, 2024
Useful defaults in tailwind — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
- ★★★★★Naina Bansal· Nov 19, 2024
tailwind is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
- ★★★★★Evelyn Liu· Nov 7, 2024
Registry listing for tailwind matched our evaluation — installs cleanly and behaves as described in the markdown.
- ★★★★★Evelyn Garcia· Oct 26, 2024
Useful defaults in tailwind — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
- ★★★★★Maya Ramirez· Oct 10, 2024
Registry listing for tailwind matched our evaluation — installs cleanly and behaves as described in the markdown.
- ★★★★★Naina Li· Oct 10, 2024
tailwind reduced setup friction for our internal harness; good balance of opinion and flexibility.
- ★★★★★Evelyn Zhang· Sep 25, 2024
tailwind fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
showing 1-10 of 44