A CLI tool to quickly scaffold React + Vite + Tailwind CSS projects with starter templates.
# Create a new project with default template
npx create-revite my-project
# Create with specific template
npx create-revite my-project --template dashboard
# Create in current directory
npx create-revite . --template landing
# Create with TypeScript
npx create-revite my-project --template blog --typescriptChoose from professionally designed starter templates:
# Basic template (default) - Clean welcome page
npx create-revite my-app
# Dashboard template - Admin dashboard with stats & charts
npx create-revite my-app --template dashboard
# Landing page template - Marketing/product page with hero section
npx create-revite my-app --template landing
# Blog template - Blog layout with posts and newsletter
npx create-revite my-app --template blog# Template options
npx create-revite my-project --template <basic|dashboard|landing|blog>
# TypeScript support
npx create-revite my-project -ts
npx create-revite my-project --typescript
# Skip Tailwind CSS (not recommended)
npx create-revite my-project --no-tailwind
# Use latest version
npx create-revite@latest my-projectThis tool creates a complete React development environment with:
- ⚡ Vite - Fast build tool and dev server
- ⚛️ React - Modern JavaScript library for building user interfaces
- 🎨 Tailwind CSS - Utility-first CSS framework (optional)
- 📝 TypeScript support - Optional TypeScript configuration
- 🔥 Hot reload - Instant updates during development
After running the command, you'll get a project structure like this:
my-project/
├── public/
│ └── vite.svg
├── src/
│ ├── assets/
│ │ └── react.svg
│ ├── App.jsx (or App.tsx)
│ ├── index.css
│ └── main.jsx (or main.tsx)
├── index.html
├── package.json
├── vite.config.js (or vite.config.ts)
└── README.md
The generated vite.config.js/ts includes:
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/vite'
export default defineConfig({
plugins: [react(), tailwindcss()],
})Tailwind is configured using the new Vite plugin approach:
- Packages installed:
tailwindcssand@tailwindcss/vite - Plugin added to Vite configuration
- CSS import added to
src/index.css:@import "tailwindcss";
- Sample styling applied to demonstrate Tailwind classes
After project creation, you can run:
npm run dev- Start development servernpm run build- Build for productionnpm run preview- Preview production build locallynpm run lint- Run ESLint (if TypeScript template)
| Option | Description | Default |
|---|---|---|
-t, --template <name> |
Choose starter template: basic, dashboard, landing, blog |
basic |
-ts, --typescript |
Use TypeScript template | JavaScript |
--no-tailwind |
Skip Tailwind CSS installation | Includes Tailwind |
- Node.js 14.0.0 or higher
- npm or yarn
npx create-revite admin-panel --template dashboard
cd admin-panel
npm run devnpx create-revite my-product --template landing --typescript
cd my-product
npm run devnpx create-revite my-blog --template blog
cd my-blog
npm run devmkdir my-project && cd my-project
npx create-revite .
npm run devnpx create-revite my-app --no-tailwindPerfect for learning or simple projects:
- Clean welcome page with React + Vite + Tailwind branding
- Animated logos and call-to-action buttons
- Minimal, focused design
Ready-to-use admin interface:
- Header with navigation and actions
- Stats cards with metrics display
- Recent activity feed
- Responsive grid layout
Professional marketing page:
- Hero section with compelling copy
- Features showcase with icons
- Navigation bar and footer
- Call-to-action buttons
- Gradient backgrounds
Complete blog layout:
- Featured post section
- Blog post grid with metadata
- Newsletter signup form
- Clean typography and spacing
- Responsive design
- 🚀 Fast setup - Get started in seconds, not hours
- 🎨 4 Beautiful templates - Professional designs for different use cases
- 🎯 Sensible defaults - Pre-configured for optimal development
- 🧩 Modular - Choose TypeScript and/or Tailwind
- 📦 Latest packages - Always uses the latest stable versions
- ⚡ Production ready - Optimized builds and modern tooling
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
MIT © Justin Karso
- 🎨 NEW: Multiple starter templates (basic, dashboard, landing, blog)
- 🚀 NEW:
--templateoption to choose from professional designs - ✨ IMPROVED: Enhanced user experience with template showcase
- 📝 IMPROVED: Better error messages and validation
- 🐛 FIX: Improved error handling with more descriptive messages
- 🔧 FIX: Better Windows compatibility for npm commands
- 🎉 Initial release
- React + Vite + Tailwind CSS scaffolding
- TypeScript support
- Current directory installation
- Tailwind CSS optional installation
