A modern React 19 template collection with Vite, React Router, Tailwind CSS, and complete dark/light mode theming. Choose from 3 optimized templates: Basic JSX, Advanced JavaScript, and TypeScript!
- βοΈ React 19 - Latest version with concurrent features
- β‘ Vite 7.1+ - Lightning-fast development and builds
- π§ React Router 6.27+ - Client-side routing with active states
- π¨ Tailwind CSS 4.1+ - Utility-first CSS with dark mode support
- π· TypeScript Support - Full TypeScript template with comprehensive type safety
- π¨ Multiple Templates - Choose from Basic, Advanced JavaScript, or TypeScript
- π Theme System - Complete dark/light mode with localStorage persistence
- π― Lucide Icons - Beautiful, customizable icon library
- π± Responsive Design - Mobile-first layouts with comprehensive UI components
- π§ Developer Tools - ESLint, Prettier, and VS Code configuration
- π Educational - Comprehensive documentation and learning examples
- π¨ UI Component Library - Pre-built, theme-aware components
# Interactive template selection (recommended)
npx create-react-tailwind-app-router
# Explicit template selection
npx create-react-tailwind-app-router my-app -t javascript
npx create-react-tailwind-app-router my-app -t jsx-basic
npx create-react-tailwind-app-router my-app -t typescript| Template | Description | Features | Command |
|---|---|---|---|
| jsx-basic | Minimal React setup | Essential features only | --basic or -t jsx-basic |
| javascript | Comprehensive JavaScript | Full UI library, themes, docs | --js or -t javascript |
| typescript | Full TypeScript support | Type safety + all JS features | --typescript or -t typescript |
npm install -g create-react-tailwind-app-router
# Then use any of the template options
#Interactive template selection (recommended)
create-react-tailwind-app-router my-app
cd my-app
npm install
npm run dev- React 19 - Latest React with minimal configuration
- Vite 7.1+ - Fast development server and optimized builds
- Tailwind CSS 4.1+ - Essential utility-first styling
- React Router 6.27+ - Basic routing setup
- ESLint & Prettier - Code quality and formatting
Everything from jsx-basic plus:
- Complete UI Library - Navigation, buttons, cards, forms
- Theme System - Dark/light mode with LocalStorage persistence
- Responsive Navbar - Theme toggle and active route highlighting
- Sample Pages - Home, About, Contact with modern design
- Custom Hooks - localStorage, debounce, window size utilities
- Context API - Global state management with theme handling
- Lucide React Icons - Beautiful icon library integration
- Form Handling - Contact form with validation examples
Everything from javascript plus:
- TypeScript 5.6+ - Full type safety and IntelliSense
- Strict Type Configuration - Comprehensive tsconfig.json
- Typed Components - All components with proper interfaces
- Type-Safe Routing - React Router with TypeScript integration
- Enhanced Development - Better error catching and code completion
Toggle Themes:
- Click Sun/Moon icon in navbar
- Automatic localStorage persistence
- Smooth transitions between modes
| Command | Description |
|---|---|
npm run dev |
Start development server |
npm run build |
Build for production |
npm run preview |
Preview production build |
npm run lint |
Run ESLint |
npm run format |
Format with Prettier |
- Quick Start - 5-minute setup guide
- Theme System - Dark/light mode implementation
- Components - Component architecture
- Examples - Code patterns and examples
- Adding Features - Extend the template
# Interactive template selection (recommended)
npx create-react-tailwind-app-router
# Or choose a specific template:
npx create-react-tailwind-app-router my-app --basic # jsx-basic
npx create-react-tailwind-app-router my-app --js # javascript
npx create-react-tailwind-app-router my-app --typescript # typescriptcd app-name
npm install
npm run devOpen http://localhost:5173 and explore based on your template:
jsx-basic Template:
- Clean React setup with routing
- Basic styling with Tailwind CSS
- Ready for your custom development
javascript/typescript Templates:
- Theme Toggle - Click Sun/Moon in navbar
- Responsive Navigation - Try resizing browser
- Form Handling - Contact page with validation
- Route Highlighting - Active states in navigation
- Theme Persistence - Refresh browser, theme remembered
| Metric | Score |
|---|---|
| Performance | 100 |
| Accessibility | 100 |
| Best Practices | 100 |
| SEO | 82 |
- Start building your custom components
- Add your styling and layouts
- Explore Tailwind CSS documentation
- Read Theme System Guide
- Check Component Examples
- Explore the custom hooks in
src/hooks/ - Review the Context API setup in
src/context/
MIT Β© Mithran B
π Start building modern React apps with beautiful theming!