Skip to content

feat: Tailwind CSS support via --tailwind flag (closes #1)#2

Open
DEADSERPENT wants to merge 6 commits into
sri443:mainfrom
DEADSERPENT:feat/tailwind-support
Open

feat: Tailwind CSS support via --tailwind flag (closes #1)#2
DEADSERPENT wants to merge 6 commits into
sri443:mainfrom
DEADSERPENT:feat/tailwind-support

Conversation

@DEADSERPENT

Copy link
Copy Markdown

What this PR does

Implements Tailwind CSS support as requested in #1.

Adds an optional --tailwind flag that works with both Vite and CRA projects and can be combined with existing flags such as --ts and --folders.

Changes

  • Added --tailwind option to the CLI
  • Wired Tailwind generation through the scaffold pipeline
  • Added Tailwind-aware templates for Vite projects
  • Added Tailwind-aware templates for CRA projects
  • Added a new Tailwind generator

Tailwind v4 Support

Vite

  • Installs tailwindcss and @tailwindcss/vite
  • Registers the Vite plugin automatically
  • Creates src/index.css with Tailwind import

CRA

  • Installs tailwindcss and @tailwindcss/postcss
  • Creates postcss.config.js
  • Creates src/index.css with Tailwind import

Usage

npx react-clean-start my-app --tailwind
npx react-clean-start my-app --tailwind --ts
npx react-clean-start my-app --tailwind --cra
npx react-clean-start my-app --tailwind --ts --cra

Issue

Closes #1

@sri443

sri443 commented Jun 2, 2026

Copy link
Copy Markdown
Owner

Thanks for the PR! Vite + Tailwind is working fine from my testing.

I found an issue with the CRA + Tailwind path where the setup generates but the Tailwind classes aren't being applied correctly. I'm currently working on a fix for the CRA integration on my side, so no action needed from you for now.

Everything else looks good so far. Once I've got the CRA setup working properly, I'll move ahead with the merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Implementing Tailwind Support

2 participants