An open API service indexing awesome lists of open source software.

https://github.com/panntod/vite-starter-template

๐ŸŒ Opinionated Vite starter template with Typescript, Tailwind v4, ESLint, Prettier, Husky and more.
https://github.com/panntod/vite-starter-template

starter-kit starter-template tailwindcss typescript vite vite-react vite-react-typescript

Last synced: about 1 year ago
JSON representation

๐ŸŒ Opinionated Vite starter template with Typescript, Tailwind v4, ESLint, Prettier, Husky and more.

Awesome Lists containing this project

README

          

# ๐Ÿš€ Vite + React + Tailwindcss + Typescript Starter Template

![Vite-Starter-Template](https://raw.githubusercontent.com/panntod/Vite-Starter-Template/refs/heads/master/public/preview.png)

A blazing-fast, modern, and highly customizable starter template for building React applications with Vite, Tailwindcss, React Router, and Typescript. This project is designed to kickstart your development process with the best tools and practices, ensuring a smooth and efficient workflow.

## โœจ Features

- โšก `Vite`: Lightning-fast build tool and development server.
- ๐ŸŽจ `Tailwindcss`: Utility-first CSS framework for rapid UI development. (v4)
- ๐Ÿ”„ `React Router`: Seamless client-side routing for single-page applications.
- ๐Ÿ“ `Typescript`: A statically typed language that helps in building robust, maintainable JavaScript applications.
- ๐Ÿงฉ `SWC Support`: Faster builds and hot module replacement with @vitejs/plugin-react-swc.
- ๐Ÿงน `Prettier & ESLint`: Clean, consistent, and error-free code with integrated formatting and linting.
- ๐Ÿถ `Husky`: Git hooks for pre-commit linting and formatting.
- ๐Ÿ“ฆ `Optimized Imports`: Path aliases for cleaner imports (e.g., @/components/Button).
- ๐ŸŒ `i18n (react-i18next)`: Built-in internationalization support for multi-language applications.
- ๐ŸŽญ `class-variance-authority (cva)`: Powerful utility for managing Tailwind component variants dynamically.
- ๐Ÿ”— `Jotai`: Lightweight and flexible state management for React.
- ๐Ÿ–ผ๏ธ `Lucide-react`: Beautifully designed icon library for modern UIs.
- ๐Ÿ”ข `UUID`: Unique ID generation for managing dynamic components.

## โ“ Why Use This Template?

- **Fast Development**: Get started instantly with a pre-configured setup.
- **Modern Stack**: Built with the latest tools and libraries.
- **Customizable**: Easily extend or modify to fit your project needs.
- **Best Practices**: Follows industry standards for code quality and performance.

## ๐Ÿ› ๏ธ Tech Stack

- **Frontend**: React 18, React Router 7
- **Styling**: Tailwind CSS 3
- **Build** Tool: Vite 5
- **State Management**: Jotai
- **Icons**: Lucide React
- **Unique ID Generation**: UUID
- **Linting**: ESLint + Prettier
- **Routing**: React Router DOM
- **Tooling**: Husky, SWC, TypeScript

## ๐Ÿ“ฅ Quick Start

To use this template, follow these steps:

### Step 1

You can click on the top right corner that says `use this template`

### Step 2

After that you will be directed to create a new repository, name the repository according to your needs

### Step 3

You have successfully created a repository on github. Now you can clone or download it

### Step 4

After cloning the repository, run the following command to set up Husky:

```bash
pnpm install && pnpm prepare
```

This will set up the necessary Git hooks to ensure that committed code is always spun and well-formatted.

## ๐Ÿ”ง Customization

- Start editing pages in src/pages and customize the routes
- Add your own components in the src/components directory.
- Modify tailwind.config.js to customize your design system.
- Update vite.config.js for additional Vite plugins or configurations.

## ๐Ÿ“„ License

This project is open-source and available under the [MIT License](LICENSE). Feel free to use, modify, and distribute it as you see fit.

## ๐ŸŒŸ Get Started Today

Whether you're building a personal project, a startup MVP, or a large-scale application, this starter template has everything you need to hit the ground running. Star โญ the repo if you find it useful, and feel free to contribute or open issues for suggestions and improvements!

## Social Media

Get in touch with me: [Pandhu Arya](https://panntod.github.io/Project-Mandiri/linktree)

> Happy Hacking ๐Ÿค–