tailwind-v4-shadcn
| Production-tested setup for Tailwind CSS v4 with shadcn/ui, Vite, and React.
Skill by WannaCry081
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/wannacry081-tailwind-v4-shadcn
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design, frontend
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Node.js package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/tailwind-v4-shadcn
What's inside
- Skill name
tailwind-v4-shadcn- Description
- | Production-tested setup for Tailwind CSS v4 with shadcn/ui, Vite, and React. Use when: initializing React projects with Tailwind v4, setting up shadcn/ui, implementing dark mode, debugging CSS variable issues, fixing theme switching, migrating from Tailwind v3, or encountering color/theming problems. Covers: @theme inline pattern, CSS variable architecture, dark mode with ThemeProvider, component composition, vite.config setup, common v4 gotchas, and production-tested patterns.
- License
- MIT
- Instructions
- 537 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Agent Skills spec issues
- body: 537 lines (spec recommends under 500)
Files (12)
- SKILL.md
- advanced-usage.md · references/
- common-gotchas.md · references/
- dark-mode.md · references/
- migration-guide.md · references/
- plugins-reference.md · references/
- components.json · templates/
- index.css · templates/
- theme-provider.tsx · templates/
- tsconfig.app.json · templates/
- utils.ts · templates/
- vite.config.ts · templates/
SKILL.md (first lines)
# Tailwind v4 + shadcn/ui Production Stack
**Production-tested**: WordPress Auditor (https://wordpress-auditor.webfonts.workers.dev)
**Last Updated**: 2025-12-04
**Status**: Production Ready ✅
## Table of Contents
1. [Before You Start](#-before-you-start-read-this)
2. [Quick Start](#quick-start-5-minutes---follow-this-exact-order)
3. [Four-Step Architecture](#the-four-step-architecture-critical)
4. [Dark Mode Setup](#dark-mode-setup)
5. [Critical Rules](#critical-rules-must-follow)
6. [Semantic Color Tokens](#semantic-color-tokens)
7. [Common Issues & Fixes](#common-issues--quick-fixes)
8. [File Templates](#file-templates)
9. [Setup Checklist](#complete-setup-checklist)
10. [Advanced Topics](#advanced-topics)
11. [Dependencies](#dependencies)
12. [Tailwind v4 Plugins](#tailwind-v4-plugins)
13. [Reference Documentation](#reference-documentation)
14. [When to Load References](#when-to-load-references)
---
## ⚠️ BEFORE YOU START (READ THIS!)
**CRITICAL FOR AI AGENTS**: If you're Claude Code helping a user set up Tailwind v4:
1. **Explicitly state you're using this skill** at the start of the conversation
2. **Reference patterns from the skill** rather than general knowledge
3. **Prevent known issues** listed in `reference/common-gotchas.md`
4. **Don't guess** - if unsure, check the skill documentation
**USER ACTION REQUIRED**: Tell Claude to check this skill first!
Say: **"I'm setting up Tailwind v4 + shadcn/ui - check the tailwind-v4-shadcn skill first"**
### Why This Matters (Real-World Results)
**Without skill activation:**
- ❌ Setup time: ~5 minutes
- ❌ Errors encountered: 2-3 (tw-animate-css, duplicate @layer base)
- ❌ Manual fixes needed: 2+ commits
- ❌ Token usage: ~65k
- ❌ User confidence: Required debugging
**With skill activation:**
- ✅ Setup time: ~1 minute
- ✅ Errors encountered: 0
- ✅ Manual fixes needed: 0
- ✅ Token usage: ~20k (70% reduction)
- ✅ User confidence: Instant success
### Known Issues This Skill Prevents
1. **tw-animate-css import error** (deprecated in v4)
2. **Duplicate @layer base blocks** (shadcn init adds its own)
3. **Wrong template selection** (vanilla TS vs React)
4. **Missing post-init cleanup** (incompatible CSS rules)
5. **Wrong plugin syntax** (using @import or require() instead of @plugin directive)
All of these are handled automatically when the skill is active.
---
## Quick Start (5 Minutes - Follow This Exact Order)
### 1. Install Dependencies
```bash
bun add tailwindcss @tailwindcss/vite
# or: npm install tailwindcss @tailwindcss/vite
bun add -d @types/node
# Note: Using pnpm for shadcn init due to known Bun compatibility issues
# (bunx has "Script not found" and postinstall/msw problems)
pnpm dlx shadcn@latest init
```
### 2. Configure Vite
```typescript
// vite.config.ts
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/vite'
import path from 'path'
export default defineConfig({
plugins: [react(), tailwindcss()],
resolve: {
alias: {
'@': path.resolve(__dirname, './src')
}
}
})
```
### 3. Update components.json
```json
{
"tailwind": {
"config": "", // ← CRITICAL: Empty for v4
"css": "src/index.css",
"cssVariables": true
}
}
```
### 4. Delete tailwind.config.ts
```bash
rm tailwind.config.ts # v4 doesn't use this file
```
---
## The Four-Step Architecture (CRITICAL)From WannaCry081/Bunban, MIT.
More from WannaCry081/Bunban
- 0.497score
clerk
WannaCry081
Clerk authentication router.
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
convex-create-component
WannaCry081
Designs and builds Convex components with isolated tables, clear boundaries, and app-facing wrappers.
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
tailwind-best-practices
WannaCry081
Tailwind CSS styling guidelines for Mastra Playground UI.
SkillCFreshness: C★ 1Claude Code +9 - 0.492score
react-native
WannaCry081
React Native renderer for json-render that turns JSON specs into native mobile UIs.
SkillCFreshness: C★ 1Claude Code +9 - 0.492score
convex-http
WannaCry081
HTTP actions for webhooks and API endpoints in Convex.
SkillCFreshness: C★ 1Claude Code +9 - 0.492score
framer-motion
WannaCry081
Comprehensive Framer Motion animation library for React.
SkillCFreshness: C★ 1Claude Code +9 - 0.490score
motion
WannaCry081
Motion (Framer Motion) React animation library.
SkillCFreshness: C★ 1Claude Code +9 - 0.489score
Next.js Security Scan
WannaCry081
Comprehensive security vulnerability scanner for Next.js and TypeScript/JavaScript projects.
SkillCFreshness: C★ 1Claude Code +9 - 0.486score
next-upgrade
WannaCry081
Upgrade Next.js to the latest version following official migration guides and codemods
SkillCFreshness: C★ 1Claude Code +9 - 0.481score
frontend-ui-ux
WannaCry081
Deprecated compatibility shim for designer-led frontend UI/UX work
SkillCFreshness: C★ 1Claude Code +9 - 0.467score
doc-coauthoring
WannaCry081
Guide users through a structured workflow for co-authoring documentation.
SkillCFreshness: C★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- May 15, 2026 (5 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/WannaCry081/Bunban
- Website
- bunban.vercel.app
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from WannaCry081
- 0.497score
clerk
WannaCry081
Clerk authentication router.
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
convex-create-component
WannaCry081
Designs and builds Convex components with isolated tables, clear boundaries, and app-facing wrappers.
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
tailwind-best-practices
WannaCry081
Tailwind CSS styling guidelines for Mastra Playground UI.
SkillCFreshness: C★ 1Claude Code +9 - 0.492score
react-native
WannaCry081
React Native renderer for json-render that turns JSON specs into native mobile UIs.
SkillCFreshness: C★ 1Claude Code +9 - 0.492score
convex-http
WannaCry081
HTTP actions for webhooks and API endpoints in Convex.
SkillCFreshness: C★ 1Claude Code +9 - 0.492score
framer-motion
WannaCry081
Comprehensive Framer Motion animation library for React.
SkillCFreshness: C★ 1Claude Code +9
Cite this page
tailwind-v4-shadcn skill. Agent Mart. https://agentmart.dev/skills/wannacry081-tailwind-v4-shadcn (last updated 2026-10-24)