tailwind
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.
Works with
12
total installs
12
this week
95
GitHub stars
0
upvotes
Install Skill
Run in your terminal
12
installs
12
this week
95
stars
Installation Guide
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 machine
- ›Node.js 16+ with npm — verify with
node --version - ›Active project directory where you want to add
tailwind
Run the install command
Execute the skills CLI command in your project's root directory to begin installation:
Fetches tailwind from pproenca/dot-skills and configures it for Cursor.
Select Cursor when prompted
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Verify installation
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate tailwind. Access via /tailwind in your agent's command palette.
Security 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 environment. Always review source, verify the publisher, and test in isolation before production.
Documentation
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 |
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
Steps
- 1Install skill using provided installation command
- 2Test with simple use case relevant to your work
- 3Evaluate output quality and relevance
- 4Iterate on prompts to improve results
- 5Integrate 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
Related Skills
framer-motion
98pproenca/dot-skills
emilkowal-animations
43pproenca/dot-skills
frontend-design
454anthropics/claude-code
premium-frontend-ui
178github/awesome-copilot
ui-animation
172mblode/agent-skills
high-end-visual-design
141leonxlnx/taste-skill
Reviews
- AAnaya Lopez★★★★★Dec 28, 2024
I recommend tailwind for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
- MMeera Martinez★★★★★Dec 16, 2024
Solid pick for teams standardizing on skills: tailwind is focused, and the summary matches what you get after install.
- AAisha Zhang★★★★★Dec 12, 2024
tailwind reduced setup friction for our internal harness; good balance of opinion and flexibility.
- DDiego Li★★★★★Nov 19, 2024
Useful defaults in tailwind — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
- NNaina Bansal★★★★★Nov 19, 2024
tailwind is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
- EEvelyn Liu★★★★★Nov 7, 2024
Registry listing for tailwind matched our evaluation — installs cleanly and behaves as described in the markdown.
- EEvelyn Garcia★★★★★Oct 26, 2024
Useful defaults in tailwind — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
- MMaya Ramirez★★★★★Oct 10, 2024
Registry listing for tailwind matched our evaluation — installs cleanly and behaves as described in the markdown.
- NNaina Li★★★★★Oct 10, 2024
tailwind reduced setup friction for our internal harness; good balance of opinion and flexibility.
- EEvelyn 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
Discussion
Comments — not star reviews- No comments yet — start the thread.