Skip to content

0xdavinci/react-tailwindcssv4-vite-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React + Tailwind CSS v4 + Vite Starter

A minimal, modern starter template to kickstart your next React project with Vite, React 19, and Tailwind CSS v4. Includes hot module replacement (HMR), ESLint integration, and a clean, extendable structure.

Features

  • ⚡️ Vite for fast development and builds
  • ⚛️ React 19 with functional components
  • 🎨 Tailwind CSS v4 for utility-first styling
  • 🧹 ESLint with recommended rules and React hooks support
  • 🔥 HMR (Hot Module Replacement) out of the box
  • 🏗️ Minimal, easy-to-extend project structure

Tech Stack

Getting Started

Prerequisites

  • Node.js (v18 or newer recommended)
  • npm (comes with Node.js)

Installation

npm install

Development

Start the local development server with hot reloading:

npm run dev

Build

Create a production build:

npm run build

Preview

Preview the production build locally:

npm run preview

Lint

Check code for linting errors:

npm run lint

Project Structure

react-tailwindcss4-vite/
├── public/           # Static assets (favicon, etc.)
├── src/              # Source code
│   ├── assets/       # Images, SVGs, etc.
│   ├── App.jsx       # Main app component
│   ├── App.css       # Example custom styles
│   ├── index.css     # Tailwind CSS import
│   └── main.jsx      # Entry point
├── index.html        # HTML template
├── vite.config.js    # Vite configuration
├── eslint.config.js  # ESLint configuration
├── package.json      # Project metadata & scripts
└── README.md         # Project documentation

Customization

  • Tailwind CSS: Edit src/index.css to add custom styles or Tailwind directives.
  • ESLint: Update eslint.config.js to adjust linting rules.
  • Vite: Modify vite.config.js for advanced configuration.

Contributing

Pull requests and issues are welcome! For major changes, please open an issue first to discuss what you would like to change.

License

MIT © 0xdavinci

About

React + Tailwind CSS v4 + Vite Starter

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors