A modern, production-ready Next.js boilerplate with TypeScript, Tailwind CSS, and essential developer tools.
- ⚡ Next.js 15.4 with App Router and Turbopack for fast development
- 🔧 TypeScript for type safety
- 🎨 Tailwind CSS v4 for utility-first styling
- 🌙 Dark/Light Theme support with
next-themes - 📦 Shadcn/ui Components - Beautiful, accessible UI components
- 🎯 Radix UI primitives for robust component foundation
- 🔍 ESLint for code quality
- 📱 Responsive Design out of the box
- 🎭 Lucide React Icons for beautiful icons
- 🎨 Poppins Font pre-configured
- ⚡ PNPM for fast package management
- Framework: Next.js 15.4
- Language: TypeScript
- Styling: Tailwind CSS v4
- UI Components: Shadcn/ui + Radix UI
- Icons: Lucide React
- Theme: next-themes
- Package Manager: PNPM
- Linting: ESLint
Make sure you have the following installed:
- Node.js 18+
- PNPM (recommended) or npm/yarn
- Clone the repository:
git clone <your-repo-url>
cd nextjs-boilerplate- Install dependencies:
pnpm install- Start the development server:
pnpm run dev- Open http://localhost:3000 in your browser.
| Command | Description |
|---|---|
pnpm run dev |
Start development server with Turbopack |
pnpm run build |
Build the application for production |
pnpm run start |
Start the production server |
pnpm run lint |
Run ESLint for code quality checks |
nextjs-boilerplate/
├── public/ # Static assets
├── src/
│ ├── app/ # App Router pages and layouts
│ │ ├── globals.css # Global styles
│ │ ├── layout.tsx # Root layout
│ │ └── page.tsx # Home page
│ ├── components/ # Reusable components
│ │ ├── ui/ # Shadcn/ui components
│ │ ├── theme-provider.tsx
│ │ └── theme-toggle.tsx
│ └── lib/ # Utility functions
│ └── utils.ts # Common utilities
├── components.json # Shadcn/ui configuration
├── tailwind.config.ts # Tailwind CSS configuration
├── tsconfig.json # TypeScript configuration
└── package.json # Project dependencies
This boilerplate comes with pre-configured Shadcn/ui components:
- Button - Customizable button component with variants
- Theme Toggle - Light/dark mode switcher
- Theme Provider - System theme detection and management
To add more components:
npx shadcn@latest add [component-name]The boilerplate includes a complete theme system:
- Light/Dark mode toggle
- System theme detection
- Persistent theme preference
- Smooth transitions between themes
- Push your code to GitHub
- Connect your repository to Vercel
- Deploy with zero configuration
Build the application:
pnpm run buildThen deploy the .next folder to your preferred hosting platform.
Create new files in src/app/ directory following the App Router convention.
- Modify
src/app/globals.cssfor global styles - Use Tailwind classes for component styling
- Customize theme in
tailwind.config.ts
- Add reusable components in
src/components/ - Use Shadcn/ui for consistent design system
- Leverage Radix UI primitives for accessibility
next- React frameworkreact&react-dom- React librarytypescript- Type safetytailwindcss- Utility-first CSSnext-themes- Theme management@radix-ui/react-slot- Component compositionlucide-react- Icon library
@types/*- TypeScript type definitionseslint- Code lintingpostcss- CSS processing
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Commit your changes:
git commit -m 'Add amazing feature' - Push to the branch:
git push origin feature/amazing-feature - Open a Pull Request
This project is open source and available under the MIT License.
If you have any questions or run into issues, please:
- Check the Next.js documentation
- Browse Tailwind CSS docs
- Visit Shadcn/ui documentation
Happy coding! 🎉