Automatically setup Tailwind CSS with Vite React in a single command!
Tired of manually configuring Tailwind CSS in your Vite React projects? This VS Code extension eliminates all the tedious setup steps and gets you coding with Tailwind CSS in seconds.
✨ Key Features
This VS Code extension automates the entire Tailwind CSS setup process for Vite React projects:
One-Click Setup: Execute a single command to complete the entire setup process
Auto Config Update: Updates vite.config.ts/js with Tailwind CSS plugin configuration
CSS Injection: Automatically adds @import "tailwindcss" to your index.css
App Updates: Clears App.css and updates App.jsx with starter code
Automated NPM Install: Installs tailwindcss and @tailwindcss/vite packages last
Progress Notifications: Real-time feedback during the setup process
🚀 Quick Start
Open your Vite React project in VS Code
Press Ctrl+Shift+P (or Cmd+Shift+P on Mac)
Type "Setup Tailwind CSS" and hit Enter
Wait for the process to complete - that's it!
Requirements
VS Code 1.106.1 or higher
Node.js and npm installed
An existing Vite React project
📖 Detailed Usage
Open your Vite React project in VS Code
Open the Command Palette (Ctrl+Shift+P / Cmd+Shift+P)
Search for and run "Setup Tailwind CSS"
Wait for the setup to complete (you'll see progress notifications)
A terminal will open to run npm install - wait for it to finish
Once complete, Tailwind CSS will be fully configured in your project!
What It Does
The extension performs the following automated steps in order:
Updates vite.config.ts/js
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/vite'
export default defineConfig({
plugins: [react(), tailwindcss()],
})