majiayu000/claude-skill-registry-data/configuring-tailwind-v4
Claude Code and agent skill by majiayu000/claude-skill-registry-data
- community
Checking that the SKILL.md file is still in the repository.
Author "majiayu000" has blocked skill(s)
Configure Tailwind CSS v4 using Vite plugin, PostCSS, or CLI with CSS-first configuration via @import and @theme directives. Use when setting up new projects or migrating build tools.
Install
npx vskill@latest install majiayu000/claude-skill-registry-data/configuring-tailwind-v4SKILL.md
The same SKILL.md was published earlier as majiayu000/claude-skill-registry-data/configuring-tailwind-v4.
Configuring Tailwind v4
Purpose
Configure Tailwind CSS v4 using modern CSS-first configuration. Tailwind v4 eliminates JavaScript configuration files in favor of CSS-based setup using @import and @theme directives.
Installation Methods
Vite Projects (Recommended)
Step 1: Install Dependencies
Step 2: Configure Vite Plugin
Add the Tailwind plugin to vite.config.js:
Step 3: Import Tailwind in CSS
Create or update your main CSS file (e.g., src/index.css):
PostCSS Projects
Step 1: Install Dependencies
Step 2: Configure PostCSS
Create postcss.config.js:
Step 3: Import Tailwind in CSS
CLI Usage
Step 1: Install CLI
Step 2: Create Input CSS
Step 3: Run Build Command
CSS-First Configuration
Tailwind v4 uses the @theme directive for all customization:
Automatic Content Detection
Template files are discovered automatically using built-in heuristics. No content array configuration required. Files in .gitignore are automatically excluded.
Manual Source Control (when needed):
Exclude paths:
Disable automatic detection:
Key Differences from v3
| v3 | v4 | |
|---|---|---|
tailwind.config.js | CSS @theme directive | |
@tailwind base; | @import 'tailwindcss'; | |
content: [] array | Automatic detection | |
postcss-tailwindcss | @tailwindcss/postcss |
Performance
- Full builds: 3.78x faster than v3
- Incremental rebuilds with new CSS: 8.8x faster
- Incremental rebuilds without new CSS: 182x faster
Browser Requirements
Tailwind v4 requires:
- Safari 16.4+
- Chrome 111+
- Firefox 128+
Projects requiring older browser support must stay on v3.4.
See Also
- references/vite-setup.md - Complete Vite configuration examples
- references/postcss-setup.md - PostCSS configuration patterns
- references/nextjs-setup.md - Next.js specific setup
Security
- Security scanPassed, 100 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 repositoryCheckingdesign/configuring-tailwind-v4/SKILL.md
Popularity
- Repository stars
- 26
- Repository forks
- 10
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. 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/majiayu000/claude-skill-registry-data/configuring-tailwind-v4)