vite-shadcn-tailwind4

Initialize shadcn/ui with Tailwind CSS v4 in Vite projects.

7|2|Updated Jan 18, 2026
One-click install
npx skills add https://github.com/jal-co/jalco-opencode --skill vite-shadcn-tailwind4-jal-co
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vite-shadcn-tailwind4
Source: https://github.com/jal-co/jalco-opencode/tree/main/opencode/.config/opencode/skills/vite-shadcn-tailwind4
Command: npx skills add https://github.com/jal-co/jalco-opencode --skill vite-shadcn-tailwind4-jal-co

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Initialize shadcn/ui + Tailwind CSS v4 in Vite projects (Vite-specific, not Next.js/Remix). Use proactively for Vite project setup, shadcn component installation, or Tailwind v4 configuration.

Core Features & Use Cases

  • Vite-specific setup for shadcn/ui and Tailwind v4 integration, including CLI initialization and CSS-first configuration.
  • Guided component installation and theming to accelerate UI scaffolding in new or existing Vite apps.
  • Migration and compatibility guidance when upgrading to Tailwind v4 and shadcn in existing Vite projects.

Quick Start

Run the setup to install dependencies, configure Tailwind v4, and initialize shadcn in your Vite project.

Frequently Asked Questions about vite-shadcn-tailwind4

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

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

Setting up shadcn/ui with Tailwind v4 in a Vite project involves installing dependencies, configuring the Tailwind v4 plugin, updating tsconfig path references, and running the shadcn CLI to apply CSS-first configuration and component scaffolding.

Can I add shadcn/ui components to an existing Vite application?

Yes, you can integrate shadcn/ui into an existing Vite application. The setup applies to both new and existing projects, providing a guided workflow for optional component installation, theming, and CSS cleanup.

What are the prerequisites for initializing shadcn/ui in Vite?

Prerequisites for initializing shadcn/ui in Vite include an existing Vite config, the Tailwind CSS v4 plugin installed, and a properly configured tsconfig with path references set up for component path resolution.

Does shadcn/ui support Tailwind CSS v4 configuration out of the box?

shadcn/ui supports Tailwind CSS v4 through a CSS-first configuration approach. This setup automates CLI initialization, applies the necessary v4 plugin settings, and handles compatibility specifically for Vite web apps.

Why is shadcn initialization failing in my Vite project?

shadcn initialization in Vite often fails if prerequisites are unmet, such as a missing Vite config, an incorrectly installed Tailwind v4 plugin, or a tsconfig file lacking proper path references for component imports.

How do I migrate an existing Vite app to Tailwind v4 and shadcn?

To migrate a Vite app to Tailwind v4 and shadcn, you update dependencies, apply CSS-first configuration, update tsconfig path references, and follow the guided workflow to resolve compatibility issues and clean up legacy CSS.