leonanpereirapinto/ai-utils/tailwindcss
Claude Code and agent skill by leonanpereirapinto/ai-utils
- community
Checking that the SKILL.md file is still in the repository.
Guide for Tailwind CSS v4 patterns and best practices. Use when styling components with Tailwind CSS, creating responsive layouts, working with Tailwind 4 features, or using tailwind-variants for component styling.
Install
npx vskill@latest install leonanpereirapinto/ai-utils/tailwindcssSKILL.md
Tailwind CSS Developer Guide
This skill provides guidelines, patterns, and best practices for working with Tailwind CSS v4 in this project.
Quick Reference
For detailed patterns, examples, and checklists, see:
- references/patterns.md - Complete usage patterns, design tokens, and anti-patterns
Core Principles
- Utility-First: Embrace utility-first approach and avoid custom CSS.
- Design Tokens: Always use design system tokens (
bg-background,text-foreground) instead of explicit colors (bg-white,text-black). - Tailwind Variants: Use
tailwind-variants(tv) for component styling instead of CVA. - Mobile-First: Build responsive layouts with mobile-first approach.
Critical: Design Token Usage
To ensure theme switching works correctly:
Always use:
- Backgrounds:
bg-background,bg-card,bg-muted,bg-popover - Text:
text-foreground,text-muted-foreground,text-card-foreground - Borders:
border-border,border-input,border-ring - Actions:
bg-primary text-primary-foreground,bg-secondary text-secondary-foreground - States:
bg-destructive text-destructive-foreground,bg-accent text-accent-foreground
Never use: bg-white, text-black, border-gray-200, bg-blue-500
Common Tasks
Component Styling with Tailwind Variants
Long Class Strings
Break class strings longer than 100 characters into arrays:
Responsive Design
Modern v4 Utilities
Anti-Patterns to Avoid
- Don't use
@applyexcept for base styles - Avoid inline styles when Tailwind has utilities
- Don't create utility classes that duplicate Tailwind
- Never use
!importantunless absolutely necessary - Don't construct classes dynamically (
bg-${color}-500)
Validation Checklist
Before finishing a task involving Tailwind CSS:
- [ ] Using design tokens instead of explicit colors
- [ ] Long class strings broken into arrays (>100 chars)
- [ ] Using
tailwind-variantsfor component styling - [ ] Mobile-first responsive approach
- [ ] Run lint checks (
pnpm run lint)
For detailed rules, anti-patterns, and configuration examples, see references/patterns.md.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/typescript/tailwindcss/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/leonanpereirapinto/ai-utils/tailwindcss)