Skip to content

shadcnblocks/mainline-nextjs-template

Repository files navigation

Mainline Next.js Template

Mainline is a free template built with shadcn/ui, Tailwind 4 and Next.js 15.

Mainline NextJS Template screenshot

Getting Started

npm install
npm run dev

Open http://localhost:3000 with your browser to see the result.

Features

Core Technology Stack

  • Next.js 15 with App Router
  • Tailwind CSS 4 for styling
  • shadcn/ui components
  • TypeScript support
  • React 19

Key Features

  • Shadcn UI: uses shadcn/ui core UI components
  • Theme System: Dark/light mode with next-themes, compatible with tweakcn
  • Form Handling: React Hook Form + Zod validation
  • Server Actions: Next-safe-action integration for server-side logic
  • MDX Support: For content pages
  • Animations: Motion library (Framer Motion) integration
  • ESLint/Prettier: Pre-configured code formatting and linting
  • Custom Fonts: DM Sans font family included
  • Icons: Lucide React + React Icons libraries
  • Styleglide Integration: For component previews/development
  • Responsive Design: Mobile-friendly layout
  • SEO Ready: Proper metadata and OG images included

Pre-built Pages

  • Home/Landing page
  • About page
  • Pricing page
  • FAQ page
  • Contact page with form
  • Login/Signup pages

Blocks

  • Hero section
  • Logo showcase/marquee
  • Features section
  • Resource allocation section
  • Testimonials with carousel
  • Pricing table
  • FAQ with accordion
  • Footer
  • Navigation bar

Deployment

Production-ready and tested for deployment on Vercel

Credits