A modern, production-ready Next.js template featuring shadcn/ui components, TypeScript, Tailwind CSS, and comprehensive tooling.
- Framework: Next.js 16 (Pages Router)
- Language: TypeScript
- Styling: Tailwind CSS v4
- UI Components: shadcn/ui (New York style)
- Icons: Lucide React
- Code Quality: ESLint, Prettier, Husky
- ⚡️ Next.js 16 with Pages Router
- 🎨 shadcn/ui components (easily customizable)
- 🎭 Tailwind CSS v4 with CSS variables for theming
- 📝 TypeScript for type safety
- 🔍 ESLint and Prettier configured
- 🪝 Husky for git hooks
- 🎯 Path aliases configured (
@/components,@/lib, etc.) - 📦 Pre-configured component registry
- Node.js 18+
- npm, yarn, pnpm, or bun
You can bootstrap a new project using this repository as a Next.js template.
Note: Run these commands in an empty folder (or use a new folder name instead of
.).
npm
npx create-next-app@latest . -e https://github.com/Mridul2820/next-templateyarn
yarn create next-app . -e https://github.com/Mridul2820/next-templatepnpm
pnpm create next-app . -e https://github.com/Mridul2820/next-templatebun
bunx create-next-app@latest . -e https://github.com/Mridul2820/next-template- Clone the repository
- Install dependencies:
npm installRun the development server:
npm run devOpen http://localhost:3000 to view your application.
npm run dev- Start development servernpm run build- Build for productionnpm run start- Start production server (port 3016)npm run lint- Run ESLintnpm run lint-fix- Fix ESLint errorsnpm run format- Format code with Prettiernpm run check-format- Check code formatting
├── src/
│ ├── components/
│ │ └── ui/ # shadcn/ui components
│ ├── lib/
│ │ └── utils.ts # Utility functions
│ ├── pages/
│ │ ├── _app.tsx # App wrapper
│ │ ├── _document.tsx
│ │ ├── index.tsx # Home page
│ │ └── api/ # API routes
│ └── styles/
│ └── globals.css # Global styles & CSS variables
├── public/ # Static assets
└── components.json # shadcn/ui configuration
This template uses shadcn/ui. Add new components with:
npx shadcn@latest add <component-name>For example:
npx shadcn@latest add button
npx shadcn@latest add card
npx shadcn@latest add dialogBrowse available components at ui.shadcn.com.
Modify theme colors in src/styles/globals.css. The template uses CSS variables for easy theming.
shadcn/ui components are added to src/components/ui/ and can be customized directly.
- Tailwind: Uses Tailwind CSS v4 with PostCSS
- TypeScript: Configuration in tsconfig.json
- ESLint: Configuration in eslint.config.mjs
API routes are located in src/pages/api/. Example endpoint:
Files in pages/api are treated as API routes.
Deploy easily on Vercel:
This template works on any platform that supports Next.js:
- AWS Amplify
- Netlify
- Railway
- Render
- Your own infrastructure
Check Next.js deployment documentation for details.
MIT