tailwind-v4-shadcn

Configure Tailwind v4 with shadcn/ui for Vite React projects.

3|3|Updated Jun 1, 2026
One-click install
npx skills add https://github.com/lawalletio/lawallet-nwc --skill tailwind-v4-shadcn-lawalletio
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tailwind-v4-shadcn
Source: https://github.com/lawalletio/lawallet-nwc/tree/main/.agents/skills/tailwind-v4-shadcn
Command: npx skills add https://github.com/lawalletio/lawallet-nwc --skill tailwind-v4-shadcn-lawalletio

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Solves the complex setup of Tailwind v4 with shadcn/ui for React projects.

Core Features & Use Cases

  • Production-tested setup for Tailwind v4 with shadcn/ui, Vite, and React.
  • Built-in patterns for dark mode, CSS variables, and theming to reduce integration risk.
  • Suitable for new projects or migrating from Tailwind v3 to v4 with minimal friction.

Quick Start

Run the provided Vite + React template to bootstrap a Tailwind v4 + shadcn/ui project and apply the recommended theming and plugin configuration.

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 v4 with shadcn/ui in a Vite and React project?

You can bootstrap a Tailwind v4 and shadcn/ui setup by running the provided Vite and React template, which applies the recommended theming and plugin configuration automatically to minimize integration friction.

Can I migrate an existing Tailwind v3 project to v4 without breaking shadcn/ui theming?

Yes, you can migrate from Tailwind v3 to v4 with minimal friction by adopting the v4 plugin system and replacing legacy configuration with CSS variables and @plugin directives for shadcn/ui compatibility.

Does Tailwind v4 require a tailwind.config.ts file for shadcn/ui dark mode?

No, Tailwind v4 avoids legacy tailwind.config.ts usage by leveraging the v4 plugin system. Dark mode theming is handled through CSS variables and a ThemeProvider instead of traditional configuration files.

What is the best way to implement dark mode in a React app using shadcn/ui and Tailwind v4?

The best way to implement dark mode is by using CSS variables for theming combined with a ThemeProvider. This pattern reduces integration risk and is supported by the production-tested Tailwind v4 plugin system.

Are CSS variables required for theming when using shadcn/ui with Tailwind v4?

Yes, CSS variables are required for theming in this setup. They enable built-in dark mode support and ensure the shadcn/ui components adapt correctly within the Vite and React environment.