A modern, production-ready Next.js boilerplate with TailwindCSS, shadcn/ui, internationalization, and comprehensive development tools.
- 🚀 Next.js 15 with App Router and React 19
- 🎨 TailwindCSS 4 for modern styling
- 🧩 shadcn/ui components for beautiful UI
- 🌍 Internationalization with next-intl
- 🌗 Dark/Light theme support
- 📱 Fully responsive design
- 🔧 TypeScript for type safety
- 🧪 Jest & Testing Library for testing
- 📏 ESLint & Prettier for code quality
- 🗃️ Prisma ORM ready
- 🔄 Redux Toolkit for state management
- 📊 Statsig analytics integration
- 🎯 Form handling with React Hook Form + Zod
- 🎵 Toast notifications with Sonner
- 📁 Well-organized project structure
- Node.js 18+
- npm, yarn, or pnpm
-
Clone the repository
git clone https://github.com/Xjectro/nextjs-tailwindcss-shadcn-boilerplate.git cd nextjs-tailwindcss-shadcn-boilerplate -
Install dependencies
npm install # or yarn install # or pnpm install
-
Start the development server
npm run dev # or yarn dev # or pnpm dev
-
Open your browser
http://localhost:3000
├── src/
│ ├── app/ # Next.js App Router
│ │ ├── [locale]/ # Internationalized routes
│ │ │ ├── layout.tsx # Locale-specific layout
│ │ │ └── page.tsx # Home page
│ │ ├── layout.tsx # Root layout
│ │ ├── robots.ts # Robots.txt generation
│ │ └── sitemap.ts # Sitemap generation
│ ├── components/ # Reusable components
│ │ ├── layout/ # Layout components
│ │ ├── providers/ # Context providers
│ │ └── ui/ # UI components
│ │ ├── primitives/ # shadcn/ui primitives
│ │ └── react/ # Custom React components
│ ├── hooks/ # Custom React hooks
│ ├── i18n/ # Internationalization config
│ ├── lib/ # Utility libraries
│ ├── modules/ # Feature modules
│ ├── styles/ # Global styles
│ └── utils/ # Utility functions
├── messages/ # Translation files
├── __tests__/ # Test files
└── public/ # Static assets
# Development
npm run dev # Start development server
npm run build # Build for production
npm run start # Start production server
# Code Quality
npm run lint # Run ESLint
npm run lint:fix # Fix ESLint issues
npm run format # Format code with Prettier
# Testing
npm run test # Run tests with JestThis boilerplate includes a comprehensive set of shadcn/ui components:
- Form Components: Input, Select, Button, Label
- Layout Components: Card, Dialog, Sheet, Sidebar
- Feedback Components: Alert, Toast (Sonner), Skeleton
- Navigation: Pagination
- Data Display: Badge, Separator
- Utility: Tooltip, Spinner
The project supports multiple languages using next-intl:
- 🇺🇸 English (
en) - 🇹🇷 Turkish (
tr)
- Create a new message file in
messages/[locale].json - Update the
src/i18n/routing.tsconfiguration - Add translations to your message files
Built-in dark/light theme switching with:
- System preference detection
- Manual theme toggle
- Persistent theme storage
- TailwindCSS dark mode classes
The boilerplate includes a complete testing setup:
- Jest for test runner
- Testing Library for component testing
- jsdom environment for browser simulation
- Pre-configured test utilities
Integrated analytics tools:
- Statsig for feature flags and analytics
- Session Replay for user behavior tracking
- Web Analytics for performance monitoring
next.config.ts- Next.js configurationtailwind.config.ts- TailwindCSS configurationtsconfig.json- TypeScript configurationeslint.config.mjs- ESLint configurationjest.config.ts- Jest testing configurationcomponents.json- shadcn/ui configuration
- Push your code to GitHub
- Connect your repository to Vercel
- Deploy with one click
The project works with any platform that supports Next.js:
- Netlify
- Railway
- DigitalOcean App Platform
- AWS Amplify
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some 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.
- Next.js - The React framework
- TailwindCSS - Utility-first CSS framework
- shadcn/ui - Beautiful component library
- next-intl - Internationalization
- Radix UI - Unstyled, accessible components
Built with ❤️ by Xjectro
⭐ Star this repo if you find it helpful!