This project was created with Better-T-Stack, a modern TypeScript stack that combines Next.js, Convex, and more.
- TypeScript - For type safety and improved developer experience
- Next.js - Full-stack React framework
- TailwindCSS - Utility-first CSS for rapid UI development
- shadcn/ui - Reusable UI components
- Convex - Reactive backend-as-a-service platform
- Authentication - Clerk
- PWA - Progressive Web App support
- Turborepo - Optimized monorepo build system
First, install the dependencies:
npm installThis project uses Convex as a backend. You'll need to set up Convex before running the app:
npm run dev:setupFollow the prompts to create a new Convex project and connect it to your application. See Convex + Clerk guide for auth setup.
Then, run the development server:
npm run devOpen http://localhost:3001 in your browser to see the web application. Your app will connect to the Convex cloud backend automatically.
social-media-app/
├── apps/
│ ├── web/ # Frontend application (Next.js)
├── packages/
│ ├── backend/ # Convex backend functions and schema
│ │ ├── convex/ # Convex functions and schema
│ │ └── .env.local # Convex environment variables
npm run dev: Start all applications in development modenpm run build: Build all applicationsnpm run dev:web: Start only the web applicationnpm run dev:setup: Setup and configure your Convex projectnpm run check-types: Check TypeScript types across all appscd apps/web && npm run generate-pwa-assets: Generate PWA assets
We've added a vibrant, accessible gradient system powered by Tailwind CSS v4 and OKLCH tokens:
- App background: applied via the
bg-appclass inapps/web/src/index.cssfor subtle colorful blobs that adapt to dark mode. - Primary gradient helpers:
bg-gradient-primary– background gradient (purple → pink → blue)text-gradient-primary– gradient text utilitygradient-border– decorative 1px gradient border using a mask
Use them in components/pages as regular classes. Examples:
// Button (shadcn):
<Button variant="gradient">Get Started</Button>
// Any element background:
<div className="rounded-xl p-6 bg-gradient-primary text-white">…</div>
// Gradient text:
<h1 className="text-3xl font-bold text-gradient-primary">Commit</h1>Brand colors are defined as OKLCH variables in apps/web/src/index.css under :root and have dark-mode adjustments. Tweak --brand-pink, --brand-purple, and --brand-blue to fine-tune the palette.