tailwind-v4-shadcn

Automate Tailwind CSS v4 setup with shadcn/ui and Vite for React projects.

21|1|Updated Jan 6, 2025
One-click install
npx skills add https://github.com/ever-works/ever-works --skill tailwind-v4-shadcn-ever-works
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tailwind-v4-shadcn
Source: https://github.com/ever-works/ever-works/tree/main/.agents/skills/tailwind-v4-shadcn
Command: npx skills add https://github.com/ever-works/ever-works --skill tailwind-v4-shadcn-ever-works

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires shadcn@latest, vite, @tailwindcss/vite, react, react-dom, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill simplifies setting up and troubleshooting Tailwind CSS v4 with shadcn/ui, Vite, and React, reducing the time to create fully functional projects and ensuring production readiness.

Core Features & Use Cases

  • Tailwind CSS v4 Setup: Automates the setup of Tailwind CSS v4 with shadcn/ui, Vite, and React, including configuration of the vite.config.ts and components.json files.
  • Dark Mode Implementation: Provides guidance on implementing dark mode with ThemeProvider and CSS variables, ensuring cross-platform consistency.
  • Troubleshooting: Offers quick fixes for common issues like color variable issues, theme switching problems, and migration from Tailwind v3.
  • Use Case: Ideal for developers who need to quickly start a React project with Tailwind CSS v4, implement dark mode, or resolve common CSS issues.

Quick Start

Initialize a new project and run 'tailwind-v4-shadcn' to automate setup, including configuration and dependencies installation.

Frequently Asked Questions about tailwind-v4-shadcn

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up Tailwind CSS v4 with shadcn/ui and Vite in a React project?

To set up Tailwind CSS v4 with shadcn/ui and Vite, you need to configure the vite.config.ts and components.json files, install specific dependencies, and use pnpm for shadcn initialization to ensure a fully functional React project.

What is the best way to implement dark mode with CSS variables in Tailwind CSS v4?

Implementing dark mode in Tailwind CSS v4 involves configuring CSS variables and using a ThemeProvider to handle theme switching, ensuring cross-platform consistency and proper color variable mapping throughout your React application.

Does shadcn/ui work with Tailwind CSS v4 and Vite out of the box?

shadcn/ui works with Tailwind CSS v4 and Vite, but requires specific configuration of vite.config.ts, components.json, and installation of dependencies like @tailwindcss/vite and pnpm to initialize the project correctly.

Why does my Tailwind v4 color variable mapping break when switching themes?

Tailwind v4 color variable issues during theme switching often stem from incorrect CSS variable mapping or ThemeProvider configuration, which can be resolved by applying specific quick fixes for common v4 migration and dark mode problems.

How do I migrate from Tailwind CSS v3 to v4 with shadcn/ui?

Migrating from Tailwind v3 to v4 with shadcn/ui requires updating your Vite configuration, adjusting CSS variable mappings, and applying quick fixes for common compatibility issues to ensure production readiness.

Do I need pnpm to initialize shadcn/ui with Tailwind CSS v4?

Yes, pnpm is required to initialize shadcn/ui with Tailwind CSS v4, along with specific packages including react, react-dom, vite, and @tailwindcss/vite to automate the setup and configuration process successfully.