A beautiful fullstack clone of ColorHunt built with Next.js 15 App Router, styled with modern UI using Tailwind CSS, and extended with authentication, form validation, and JWT security.
- π¨ Browse and explore beautiful color palettes
- π§βπ» Register & Login functionality
- β Form validation with Zod
- π Authentication using JWT
- π¦ Fullstack with Prisma ORM and PostgreSQL (or any other DB)
- π UI inspired by ColorHunt + custom enhancements
- πͺ Soft UI effects and smooth transitions
- π§ Responsive design, works great on mobile & desktop
| Layer | Tech |
|---|---|
| Frontend | Next.js 15 (App Router) + React 19 |
| Styling | Tailwind CSS |
| Validation | Zod |
| Auth | JWT (token-based auth with cookie) |
| Database | Prisma ORM with SQLite/PostgreSQL/etc. |
| Icons | react-icons |
| State | useState, server-side logic with next/headers |
| Env Config | dotenv |
- Clone the repository:
git clone https://github.com/your-username/colorhunt-clone.git cd colorhunt-clone
Install dependencies:
npm install
Set environment variables:
Create a .env file based on .env.example:
DATABASE_URL=your_database_url JWT_SECRET=your_jwt_secret
Generate Prisma client:
npx prisma generate
Run the development server:
npm run dev
π Authentication Flow
Registration form sends data to a server action with Zod validation.
On success, JWT is generated and stored in an HTTP-only cookie.
Client reads cookie status via next/headers in Server Components.
Protected routes check for token presence.
πΈ UI/UX
Color palette inspired by ColorHunt
Responsive and accessible design
Smooth modals, hover states, and focus effects
Integrated react-icons for modern look
β¨ Improvements over Original
β
User registration & login system
β
Server-side JWT auth with secure cookie
β
Form validation & error handling
β
Modular and maintainable folder structure