next-tailwind-shadcn-starter- Tailwind Templates

Next Tailwind Shadcn Starter

A modern Next.js 15 starter template with TypeScript, Tailwind CSS v4, shadcn UI, Framer Motion, and Lucide React.

Next.js Modern Starter Template

A modern, lightweight starter template for Next.js projects with the latest tools and best practices.

✨ Features

  • Next.js 15 - The React framework with App Router and Server Components
  • TypeScript - Type safety and improved developer experience
  • Tailwind CSS v4 - The latest version with improved performance and features
  • shadcn UI - Beautifully designed components built with Radix UI and Tailwind
  • Framer Motion - Powerful animation library for React
  • Lucide React - Beautiful, consistent icon set
  • Geist Fonts - Clean, modern typography
  • ESLint - Code linting for best practices

šŸš€ Getting Started

Prerequisites

  • Node.js 18+ (20+ recommended)
  • npm or pnpm or yarn or bun

Installation

  1. Clone this repository:

    git clone https://github.com/yourusername/next-tailwind-shadcn-starter.git my-project
    cd my-project
    
  2. Install dependencies:

    npm install --legacy-peer-deps
    

    Note: The --legacy-peer-deps flag is currently needed for React 19 compatibility.

  3. Start the development server:

    npm run dev
    

    Open http://localhost:3000 in your browser.

šŸ“¦ Project Structure

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

🧩 Adding Components

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

šŸ”§ Customization

Tailwind CSS

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. */
}

Fonts

The template uses the Geist font family. You can change the fonts in layout.tsx.

šŸ—ļø Building for Production

# Build the app
npm run build

# Start the production server
npm start

šŸ¤ Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

šŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

šŸ™ Acknowledgements


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.

Top categories

Loading Svelte Themes