A modern, production-ready React template featuring a stunning indigo gradient design system. Perfect for portfolios, agency websites, and project showcases.
View Demo β’ Documentation β’ Professional Services
- β¨ Features
- π Quick Start
- π οΈ Tech Stack
- π¦ Core Components
- π¨ Design System
- π± Responsive Design
- π§ Customization
- π€ Contributing
- β FAQ
- π« Support & Contact
- π¨ Beautiful purple-pink gradient design system
- π Modern glassmorphism effects
- π± Fully responsive design for all devices
- β‘ Optimized performance with 90+ Lighthouse score
- πΌοΈ Project showcase component with live previews
- π₯ Interactive preview embedder with fallback handling
- π οΈ Pre-configured tech stack cards
- π Secure iframe handling for external content
- π¦ Zero configuration needed
- π― ESLint + Prettier setup
- π Comprehensive documentation
- β‘ Fast refresh in development
- Clone the repository
git clone https://github.com/AliKelDev/ReactViteTemplate.git
cd ReactViteTemplate
- Install dependencies
npm install
# or
pnpm install
# or
yarn install
- Start development server
npm run dev
-
Open browser Navigate to
http://localhost:5173
-
Build for production
npm run build
Technology | Purpose |
---|---|
React 18 | UI Framework |
Vite | Build Tool |
Tailwind CSS | Styling |
Lucide Icons | Icons |
ESLint | Code Quality |
Prettier | Code Formatting |
Securely embed external content with loading states and error handling:
<PreviewEmbed
url="https://your-url.com"
title="Project Preview"
fallback={<LoadingSpinner />}
/>
Showcase technologies with animated cards:
<TechCard
title="React + Vite"
description="Modern build tooling"
icon={ReactIcon}
animate={true}
/>
Terminal-style installation instructions:
<InstallGuide
steps={['npm install', 'npm run dev']}
language="bash"
copyable={true}
/>
/* Base glass effect */
.glass-card {
@apply backdrop-blur-lg bg-white/10 border border-white/20 rounded-xl shadow-lg;
}
/* Interactive glass effect */
.glass-card-interactive {
@apply glass-card hover:bg-white/20 transition-all duration-300;
}
/* Primary gradient */
.gradient-primary {
@apply bg-gradient-to-r from-purple-600 to-pink-500;
}
/* Secondary gradient */
.gradient-secondary {
@apply bg-gradient-to-r from-blue-500 to-purple-600;
}
Our template uses a mobile-first approach with intuitive breakpoints:
Breakpoint | Size | Usage |
---|---|---|
sm: |
640px | Mobile devices |
md: |
768px | Tablets |
lg: |
1024px | Laptops |
xl: |
1280px | Desktops |
2xl: |
1536px | Large screens |
Modify tailwind.config.js
:
module.exports = {
theme: {
extend: {
colors: {
primary: {
50: '#f5f3ff',
// Add your color palette
900: '#4c1d95',
}
},
fontFamily: {
sans: ['Inter', 'sans-serif'],
// Add custom fonts
}
}
}
}
Create new components in src/components/
:
export const CustomCard = ({ title, children }) => {
return (
<div className="glass-card p-6">
<h2 className="text-xl font-bold mb-4">{title}</h2>
{children}
</div>
);
};
Update src/config/navigation.js
:
export const navigation = {
main: [
{ name: 'Home', href: '/' },
{ name: 'Projects', href: '/projects' },
// Add your routes
],
social: [
{ name: 'GitHub', href: 'https://github.com/AliKelDev' },
// Add social links
]
};
Yes!
We recommend using Netlify or Vercel. Both platforms offer easy deployment from Git:
- Connect your repository
- Set build command to
npm run build
- Set publish directory to
dist
- Add fonts to
public/fonts/
- Update
tailwind.config.js
with font family - Add
@font-face
rules insrc/styles/fonts.css
- π Star this repo if you find it helpful!
- π Report bugs via GitHub Issues
- π€ Follow me on Twitter for updates
- πΌ Check out my professional services
This project is licensed under the MIT License - see the LICENSE file for details.
Made with β€οΈ by Alice Leiser