tw-setup
v1.0.4
Published
Instant Tailwind CSS setup CLI for Vite/Next.js
Downloads
19
Readme
tw-setup
A CLI to instantly configure Tailwind CSS v5 in your Vite or Next.js projects with zero hassle.
🚀 Features
- ⚡ Installs Tailwind CSS v5
- 🔧 Configures
vite.config.tsorvite.config.js - 🧼 Cleans up old
App.cssand inserts a beautifulApp.tsx - 📦 Adds
@/*path alias intsconfig.json - 🧠 Smart detection of TypeScript support
- 📘 Adds helpful links to Tailwind docs and GitHub star
🛠️ Installation & Usage
Option 1: Run Instantly with NPX
npx tw-setupOption 2: Install Globally
npm install -g tw-setup
tw-setup📁 What It Does
Installs:
npm install tailwindcss @tailwindcss/vite npm install -D @types/nodeCreates or updates:
src/index.csswith@import "tailwindcss";tsconfig.jsonortsconfig.app.jsonwithbaseUrland@/*aliasvite.config.tsorvite.config.jswith Tailwind and path aliasesApp.tsxwith a nice styled componentmain.tsxwith root render + Tailwind CSS import
Removes legacy
App.css
📘 Learn More
- Tailwind CSS Documentation
- GitHub Repo — ⭐ Give it a star!
📸 Preview Output UI
The generated app will show:
🚀 Tailwind Setup Complete!
You're now ready to build with Tailwind CSS in your Vite project.Styled with Tailwind classes and includes buttons linking to Docs and GitHub.
🙌 Contributing
Pull requests and issues are welcome!
git clone https://github.com/aswanth6000/tw-setup
cd tw-setup
npm install