next-starter Tailwind Templates

Next Starter

A modern and opinionated Next.js starter template with a focus on developer experience and best practices. Built with TypeScript, Tailwind CSS, and includes essential tooling for code quality and optimization.

Next Starter

A modern and opinionated Next.js starter template with a focus on developer experience and best practices. Built with TypeScript, Tailwind CSS, and includes essential tooling for code quality and optimization.

πŸ’‘ Philosophy

This starter was created with one key principle in mind: You should spend your time building, not configuring.

Unlike many starter templates that come loaded with features you may never use, this template provides just what you need to start building right away. No time wasted removing unused dependencies or reconfiguring bloated setups. Every included feature and configuration serves a purpose, creating a foundation that's ready for immediate development while maintaining complete flexibility for your project's specific needs.

πŸš€ Quick Start

# Create new project using this starter
npx create-next-app@latest --example "https://github.com/larsgoette/next-starter" [your-project-name]

# Navigate to the project
cd your-project-name

# Start the development server
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

✨ Features

  • Modern Stack

  • Styling & UI

    • Tailwind CSS 4 with automatic class sorting
    • Efficient class merging with tailwind-merge
  • Developer Experience

    • ESLint & Prettier pre-configured
    • Accessibility checks with jsx-a11y
    • Automated favicon generation
    • Minimal external dependencies
  • SEO & Performance

    • Built-in SEO optimization
    • Schema.org types support
    • Dynamic OpenGraph images
    • Optimized asset generation

πŸ“ Project Structure

src/
β”œβ”€β”€ app/           # Next.js App Router files
β”œβ”€β”€ components/    # React components
β”‚   β”œβ”€β”€ features/  # Feature-specific components
β”‚   β”œβ”€β”€ hooks/     # Custom React hooks
β”‚   β”œβ”€β”€ icons/     # SVG icons
β”‚   β”œβ”€β”€ layouts/   # Layout components
β”‚   β”œβ”€β”€ sections/  # Page sections
β”‚   └── ui/        # Base UI components
β”œβ”€β”€ lib/           # Utilities and logic
└── scripts/       # Build and development scripts

App Directory

The src/app directory contains the core Next.js application files:

app/
β”œβ”€β”€ apple-icon.png         # [Auto-generated] iOS icon
β”œβ”€β”€ config.tsx             # Global configuration
β”œβ”€β”€ favicon.ico            # [Auto-generated] Browser favicon
β”œβ”€β”€ globals.css            # Global styles
β”œβ”€β”€ icon.svg               # [Auto-generated] Modern browsers icon
β”œβ”€β”€ layout.tsx             # Root layout
β”œβ”€β”€ manifest.ts            # PWA manifest
β”œβ”€β”€ opengraph-image.tsx    # OG image generator
└── page.tsx               # Homepage

Files marked with [Auto-generated] are created and managed by the npm run favicons script. You should not edit these files directly as they will be overwritten when the script runs.

βš™οΈ Configuration

Edit src/app/config.ts to customize your application:

// Basic settings
export const APP_LANG = "en";
export const APP_NAME = "Acme Studio";
export const APP_TITLE = "Welcome to the Future.";
export const BASE_URL = "https://example.com";

// Theme settings
export const THEME_COLOR = "#ffffff";
export const LOADING_BACKGROUND_COLOR = "#ffffff";
export const OG_BACKGROUND_COLOR = "#fafafa";
export const APPLE_ICON_BACKGROUND_COLOR = "#fafafa";

πŸ› οΈ Available Scripts

  • npm run dev - Start development server
  • npm run build - Build for production
  • npm run start - Start production server
  • npm run lint - Run ESLint
  • npm run favicons - Generate favicon assets

Favicon Generation

Generate optimized favicon assets with:

npm run favicons -- path/to/your/image.[svg|png]

This creates:

  • favicon.ico for browsers
  • apple-icon.png (180x180)
  • icon.svg or icon.png for modern browsers

πŸ“š Learn More

To learn more about the technologies used in this template:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

🌐 Browser Support

Browserlist support is configured for:

  • Browsers with >0.5% market share
  • Last 2 versions of major browsers
  • Firefox ESR
  • Actively maintained browsers

πŸ“„ License

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

πŸ‘€ Author

Lars GΓΆtte
Website: larsgoette.de

Top categories

tailwind logo

Need a Tailwind website built?

Hire a professional TailwindCSS developer today.
Loading Svelte Themes