A beautifully designed, accessible, and customizable Next.js starter template built with Shadcn UI and Tailwind CSS.
- Next.js 14 with App Router
- React 18
- TypeScript
- Tailwind CSS for styling
- Shadcn UI components
- Dark mode support with next-themes
- ESLint and Prettier for code linting and formatting
- Customizable theme using CSS variables
- Responsive design
- Accessibility-focused components
- Node.js 20.18.0 or later
- npm
-
Clone the repository:
git clone https://github.com/husniadil/nextjs-starter.git cd nextjs-starter
-
Install dependencies:
npm install
-
Run the development server:
npm run dev
-
Open http://localhost:3000 with your browser to see the result.
dev
: Run the development serverbuild
: Build the production applicationstart
: Start the production serverlint
: Run ESLintlint:fix
: Run ESLint and automatically fix issuespreview
: Build and start the production servertypecheck
: Run TypeScript type checkingformat:write
: Format code using Prettierformat:check
: Check code formatting using Prettier
app/
: Next.js app directory containing pages and layoutscomponents/
: Reusable React componentsconfig/
: Configuration fileslib/
: Utility functions and shared codepublic/
: Static assetsstyles/
: Global styles and Tailwind CSS configuration
- Update
config/site.ts
to change site metadata and navigation - Modify
tailwind.config.ts
to customize the Tailwind CSS theme - Adjust global styles in
app/globals.css
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
This project is based on the shadcn-ui/next-template repository. We appreciate their work in creating the original template that served as the foundation for this starter.