A modern, lightweight starter template for Next.js projects with the latest tools and best practices.
Clone this repository:
git clone https://github.com/yourusername/next-tailwind-shadcn-starter.git my-project
cd my-project
Install dependencies:
npm install --legacy-peer-deps
Note: The
--legacy-peer-deps
flag is currently needed for React 19 compatibility.
Start the development server:
npm run dev
Open http://localhost:3000 in your browser.
next-tailwind-shadcn-starter/
āāā src/
ā āāā app/
ā ā āāā globals.css # Global styles with Tailwind import
ā ā āāā layout.tsx # Root layout with fonts and metadata
ā ā āāā page.tsx # Home page
ā āāā components/
ā ā āāā ui/ # shadcn UI components
ā ā āāā ... # Custom components
ā āāā lib/
ā āāā utils.ts # Utility functions
āāā public/
ā āāā ... # Static assets
āāā .eslintrc.json # ESLint configuration
āāā next.config.js # Next.js configuration
āāā package.json # Project dependencies and scripts
āāā tailwind.config.ts # Tailwind configuration
āāā tsconfig.json # TypeScript configuration
This template uses shadcn/ui
for components. To add a new component:
npx shadcn@latest add [component-name]
For example:
npx shadcn@latest add button
npx shadcn@latest add card
npx shadcn@latest add dialog
The template uses Tailwind CSS v4. Edit the theme in your globals.css
file:
@theme {
--color-primary: rgb(14 165 233);
--color-secondary: rgb(30 41 59);
/* Add your custom colors, sizes, etc. */
}
The template uses the Geist font family. You can change the fonts in layout.tsx
.
# Build the app
npm run build
# Start the production server
npm start
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.
Made with ā¤ļø by [Your Name]
Feel free to customize this README with your personal information, additional features you add to the template, or any specific usage instructions that might be relevant for your use case.