nuxt4-template Tailwind Templates

Nuxt4 Template

A modern Nuxt.js template with Nuxt 4 compatibility features, Tailwind CSS 4 integration, nuxt eslint module, and custom fetch implementation. Includes dark/light mode support, responsive design, and full TypeScript integration for optimal developer experience

Nuxt 4 Template

A modern Nuxt.js template with Nuxt 4 compatibility features, Tailwind CSS 4 integration, nuxt eslint module, and custom fetch implementation. Includes dark/light mode support, responsive design, and full TypeScript integration for optimal developer experience

Features

  • šŸš€ Nuxt 3 with Nuxt 4 compatibility
  • šŸŽØ Tailwind CSS 4
  • šŸ”„ Custom fetch implementation
  • šŸŒ“ Dark/Light mode support
  • šŸ“± Responsive design
  • šŸ”’ TypeScript support

Built With

Nuxt Vue Tailwind CSS TypeScript ESLint PNPM VueUse

Tech Stack

Nuxt Vue Tailwind CSS TypeScript ESLint Color Mode Nuxt Image PNPM

Core Technologies

Nuxt Modules & Plugins

Project Structure

ā”œā”€ā”€ app/
│   ā”œā”€ā”€ components/    # UI components
│   ā”œā”€ā”€ config/        # Frontend configurations
│   ā”œā”€ā”€ pages/         # Application pages
│   ā”œā”€ā”€ types/         # TypeScript types for frontend
│   └── utils/         # Utility functions for client
ā”œā”€ā”€ server/
│   ā”œā”€ā”€ api/           # API endpoints
│   ā”œā”€ā”€ configs/       # Server configurations
│   ā”œā”€ā”€ types/         # TypeScript types for server
│   └── utils/         # Utility functions for server
└── shared/            # Shared types and utilities

Setup

Make sure to install dependencies:

# npm
npm install

# pnpm
pnpm install

# yarn
yarn install

# bun
bun install

Development Server

Start the development server on http://localhost:3000:

# npm
npm run dev

# pnpm
pnpm dev

# yarn
yarn dev

# bun
bun run dev

Production

Build the application for production:

# npm
npm run build

# pnpm
pnpm build

# yarn
yarn build

# bun
bun run build

Locally preview production build:

# npm
npm run preview

# pnpm
pnpm preview

# yarn
yarn preview

# bun
bun run preview

Coding Standards

  • Components - All components should be reusable, developer-friendly, and kept under 600-700 lines.
  • CSS - Prefer Tailwind utility classes over custom CSS. When needed, use modular CSS.
  • TypeScript - Full TypeScript support for better IDE autocompletion and type safety.
  • State Management - Use built-in useState from Nuxt for state management.

Browser Support

  • Latest versions of Chrome, Firefox, Safari, and Edge

License

MIT

Top categories

Loading Svelte Themes