A complete step-by-step guide to quickly set up **React + Vite + Tailwind CSS + Shadcn UI * with clean @/... alias imports β no TypeScript required!*
β±οΈ Time to complete : ~10 minutes
π― Result : Production-ready React app with beautiful, accessible components
π§© Step 1: Create a Vite + React Project
Scaffold your new project with Vite:
npm create vite@latest my-app cd my-app
Enter fullscreen mode
Exit fullscreen mode
When prompted, select:
Option | Choice
Framework | React
Variant | JavaScript
β
Vite will generate a lean, fast React starter with HMR (Hot Module Replacement) out of the box.
π Step 2: Install Dependencies
Install core packages and Tailwind's official Vite plugin:
npm install npm install tailwindcss @tailwindcss/vite
Enter fullscreen mode
Exit fullscreen mode
Package Purpose
tailwindcss Utility-first CSS framework
@tailwindcss/vite First-party Vite plugin for Tailwind (no PostCSS config needed!)
π¨ Step 3: Configure vite.config.js
Replace the entire contents ofβ¦