A modern, production-ready React boilerplate with TypeScript, Tailwind CSS, ShadCN/UI components, and comprehensive tooling.
- ⚡ Vite - Lightning fast development with Hot Module Replacement
- ⚛️ React 19 - Latest React with TypeScript for type-safe development
- 🎨 Tailwind CSS v3.4.1 - Utility-first CSS framework for rapid UI development
- 🎁 ShadCN/UI - Beautiful, accessible components built with Radix UI
- 📊 Recharts - Composable charting library for React applications
- 🔧 ESLint - Code quality and consistency with modern configuration
- 💅 Prettier - Code formatting with ESLint integration
- 📁 Path Aliases - Clean imports with
@/*
path mapping - 🏗️ Sample Components - Ready-to-use components showcasing all features
# Install dependencies
npm install
# Start development server
npm run dev
# Build for production
npm run build
# Preview production build
npm run preview
npm run dev
- Start development servernpm run build
- Build for productionnpm run preview
- Preview production buildnpm run lint
- Run ESLintnpm run lint:fix
- Fix ESLint issues automaticallynpm run format
- Format code with Prettiernpm run format:check
- Check code formatting
This boilerplate includes SWC support for faster compilation. To enable SWC:
-
Install SWC dependencies:
npm install @vitejs/plugin-react-swc @swc/core
-
Update
vite.config.ts
:import react from '@vitejs/plugin-react-swc'
-
Comment out the regular React plugin import
SWC provides significantly faster compilation times compared to Babel, especially for larger projects.
src/
├── components/ # Reusable components
│ ├── ui/ # ShadCN/UI base components
│ ├── Chart.tsx # Chart examples with Recharts
│ ├── FeatureCards.tsx # Feature showcase cards
│ └── Hero.tsx # Hero section
├── lib/ # Utility functions
│ └── utils.ts # cn() utility for className merging
├── App.tsx # Main application component
├── main.tsx # Application entry point
└── index.css # Global styles and Tailwind CSS
- Button with variants (default, destructive, outline, secondary, ghost, link)
- Card components (Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter)
- Badge with variants (default, secondary, destructive, outline)
- Bar Chart - Monthly sales data visualization
- Line Chart - Multi-line chart for users and revenue
- Pie Chart - Traffic sources with custom colors
Configured with ShadCN/UI design system including:
- Custom color palette with CSS variables
- Dark mode support
- Custom animations
- Typography plugin
- Modern ESLint configuration with TypeScript support
- Prettier integration for consistent formatting
- React-specific rules and best practices
- Strict TypeScript configuration
- Path aliases configured for clean imports
- Latest React 19 types
MIT License - feel free to use this boilerplate for your projects!