This project is built using React, Vite, Tailwind CSS, and shadcn/ui with JavaScript.
npm create vite@latest my-app -- --template react
cd my-app
npm installnpm install tailwindcss @tailwindcss/viteUpdate vite.config.js:
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/vite'
export default defineConfig({
plugins: [
react(),
tailwindcss(),
],
})Update src/index.css:
@import "tailwindcss";Create a jsconfig.json file in the project root:
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
}
}
}Run:
npx shadcn@latest initWhen prompted, select:
✔ Select a component library: Radix
✔ Which preset would you like to use?: Nova (Lucide / Geist)
Example: Add a Button component.
npx shadcn@latest add buttonnpm run dev- React
- Vite
- Tailwind CSS
- shadcn/ui
- Radix UI
- Lucide Icons
- Geist Font
# Start development server
npm run dev
# Build for production
npm run build
# Preview production build
npm run preview
# Add shadcn components
npx shadcn@latest add button
npx shadcn@latest add card
npx shadcn@latest add input
npx shadcn@latest add dialog