artivilla/agents-config/tailwind-v4
- community
Checking that the SKILL.md file is still in the repository.
Tailwind CSS v4 with CSS-first configuration and design tokens. Use when setting up Tailwind v4, defining theme variables, using OKLCH colors, or configuring dark mode. Triggers on @theme, @tailwindcss/vite, oklch, CSS variables, --color-, tailwind v4.
Install
npx vskill@latest install artivilla/agents-config/tailwind-v4SKILL.md
Tailwind CSS v4 Best Practices
Quick Reference
Vite Plugin Setup:
CSS Entry Point:
@theme Inline Directive:
Key Differences from v3
| Feature | v3 | v4 | |
|---|---|---|---|
| Configuration | tailwind.config.js | @theme in CSS | |
| Build Tool | PostCSS plugin | @tailwindcss/vite | |
| Colors | rgb() / hsl() | oklch() (default) | |
| Theme Extension | extend: {} in JS | CSS variables | |
| Dark Mode | darkMode config option | CSS variants |
@theme Directive Modes
default (standard mode)
Generates CSS variables that can be referenced elsewhere:
Note: You can also use @theme default explicitly to mark theme values that can be overridden by non-default @theme declarations.
inline
Inlines values directly without CSS variables (better performance):
reference
Inlines values as fallbacks without emitting CSS variables:
OKLCH Color Format
OKLCH provides perceptually uniform colors with better consistency across hues:
- L (Lightness): 0% (black) to 100% (white)
- C (Chroma): 0 (gray) to ~0.4 (vibrant)
- H (Hue): 0-360 degrees (red → yellow → green → blue → magenta)
Examples:
CSS Variable Naming
Tailwind v4 uses double-dash CSS variable naming conventions:
No Config Files Needed
Tailwind v4 eliminates configuration files:
- No `tailwind.config.js` - Use @theme in CSS instead
- No `postcss.config.js` - Use @tailwindcss/vite plugin
- TypeScript support - Add
@types/nodefor path resolution
Progressive Disclosure
- Setup & Installation: See references/setup.md for Vite plugin configuration, package setup, TypeScript config
- Theming & Design Tokens: See references/theming.md for @theme modes, color palettes, custom fonts, animations
- Dark Mode Strategies: See references/dark-mode.md for media queries, class-based, attribute-based approaches
Decision Guide
When to use @theme inline vs default
Use `@theme inline`:
- Better performance (no CSS variable overhead)
- Static color values that won't change
- Animation keyframes with multiple values
- Utilities that need direct value inlining
Use `@theme` (default):
- Dynamic theming with JavaScript
- CSS variable references in custom CSS
- Values that change based on context
- Better debugging (inspect CSS variables in DevTools)
When to use @theme reference
Use `@theme reference`:
- Provide fallback values without CSS variable overhead
- Values that should work even if variable isn't defined
- Reducing :root bloat while maintaining utility support
- Combining with inline for direct value substitution
Common Patterns
Two-Tier Variable System
Semantic variables that map to design tokens:
Custom Font Configuration
Animation Keyframes
Security
- Security scanPassed, 95 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/tailwind-v4/SKILL.md
Popularity
- 7-day trend score
- 0
Refreshed 17 Mar 2026, 7 months ago.
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/artivilla/agents-config/tailwind-v4)