This is a starter template for creating modern React applications using:
- ⚡ Vite (Fast build tool)
- 🎨 Tailwind CSS (Utility-first CSS framework)
- 🏷️ TypeScript (Static typing for JavaScript)
✅ Pre-configured Vite + React + TypeScript
✅ Integrated Tailwind CSS
✅ Ready-to-use file structure
✅ Fast and lightweight
git clone https://github.com/Sahasawat-Boss/react-vite-tailwind-ts-template.git my-project
cd my-projectIf you want to start fresh without the commit history of this template:
Remove-Item -Recurse -Force .git
git init
git add .
git commit -m "Initial commit"Now, you have a clean repository.
npm installnpm run devYour app will be running at http://localhost:5173/ 🎉.
Tailwind is already set up! You can customize it in tailwind.config.ts:
export default {
content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],
theme: {
extend: {},
},
plugins: [],
};Use Tailwind classes directly in your components:
<button className="bg-blue-500 text-white px-4 py-2 rounded-lg">
Click Me
</button>📂 my-project
┓ 📂 src
┃ ┓ 📂 assets
┃ ┓ 📂 components
┃ ┓ 📂 pages
┃ ┓ 🐜 App.tsx
┃ ┓ 🐜 main.tsx
┃ ┓ 🐜 index.css
┓ 🐜 .gitignore
┓ 🐜 package.json
┓ 🐜 tailwind.config.ts
┓ 🐜 tsconfig.json
┓ 🐜 vite.config.ts
Instead of cloning manually, you can use this repository as a GitHub template:
- Click "Use this template" on GitHub.
- Create your new repository.
- Clone the new repo and start coding!
npm run devnpm run buildnpm run previewFeel free to fork this repository and improve it! If you make useful changes, consider opening a pull request.
This project is licensed under the MIT License.
🔥 Created by @Sahasawat-Boss
