A modern, production-ready React template built with Vite, TypeScript, and Tailwind CSS. Features a beautiful, responsive UI with multiple pages and components ready to use.
π Live Demo
- β‘ Vite - Lightning-fast development with Hot Module Replacement
- βοΈ React 19 - Latest React with TypeScript support
- π¨ Tailwind CSS - Utility-first CSS framework for rapid UI development
- π TypeScript - Type safety and enhanced developer experience
- π£οΈ React Router - Client-side routing with multiple pages
- π Dark Mode Support - Built-in dark mode styling
- π± Responsive Design - Mobile-first responsive components
- β ESLint - Code quality and consistency checks
- Node.js 16+ and npm
- Clone the repository
- Install dependencies:
npm install- Start the development server:
npm run devThe application will be available at http://localhost:5173
npm run dev # Start Vite development server
npm run type-check # Run TypeScript compiler without emitting files
npm run lint # Run ESLint on TypeScript filesnpm run build # Type check and create production build
npm run preview # Preview production build locallysrc/
βββ app/
β βββ components/
β β βββ header/ # Navigation header with mobile menu
β β βββ footer/ # Footer with links and social icons
β βββ pages/
β βββ home/ # Landing page with hero and features
β βββ about/ # About page with team section
β βββ services/ # Services showcase page
β βββ contact/ # Contact page with form
βββ App.tsx # Main app component with routing
βββ App.css # Global styles
βββ index.css # Tailwind directives
βββ main.tsx # Application entry point
- Hero section with gradient text
- Feature cards with icons
- Statistics section
- Call-to-action sections
- Company mission and values
- Technology stack showcase
- Team member profiles with images
- Service cards with detailed features
- Multiple service categories
- Interactive hover effects
- Contact form with validation
- Contact information cards
- Social media links
- Responsive two-column layout
The template uses a blue-purple gradient theme. To customize colors, update the Tailwind classes in components or modify tailwind.config.js.
All components follow a barrel export pattern with TypeScript:
- Component file:
ComponentName.tsx - Index file:
index.ts
- Create a new folder in
src/app/pages/your-page/ - Create
YourPage.tsxandindex.ts - Import and add the route in
src/App.tsx
- React 19 - UI library
- TypeScript 5.7 - Type-safe JavaScript
- Vite 6 - Build tool and dev server
- Tailwind CSS 3.4 - Utility-first CSS framework
- React Router 7 - Client-side routing
- ESLint 9 - Code linting
This template is configured for automatic deployment to Firebase Hosting via GitHub Actions.
-
Create a Firebase project at Firebase Console
-
Install Firebase CLI:
npm install -g firebase-tools
-
Login to Firebase:
firebase login
-
Generate a service account key:
- Go to Firebase Console β Project Settings β Service Accounts
- Click "Generate New Private Key"
- Save the JSON file securely
-
Add Firebase secret to GitHub:
- Go to your GitHub repo β Settings β Secrets and variables β Actions
- Click "New repository secret"
- Name:
FIREBASE_SERVICE_ACCOUNT - Value: Paste the entire contents of the service account JSON file
- Click "Add secret"
-
Push to GitHub:
git add . git commit -m "Setup Firebase deployment" git push origin main
Your app will automatically build and deploy to Firebase whenever you push to the main branch!
You can also deploy manually:
# Build your app
npm run build
# Deploy to Firebase
firebase deployFirebase Configuration:
- Build directory:
dist - Single-page app: Yes (configured in
firebase.json) - Live URL: https://react-vite-tailwind-template.web.app
- FIREBASE_SETUP.md - Complete Firebase deployment setup guide
- CLAUDE.md - Architecture and development guide
This project is open source and available under the MIT License.