A Vite plugin that integrates Tailwind CSS with JIT (Just-In-Time) compiler enabled by default. Current version 0.0.4 is a very early alpha, released infrequently, with minimal documentation and no tests. Zero-config setup similar to WindiCSS plugin but for Tailwind. Includes a config viewer at `/_tailwind/`. Not yet production-ready; alternatives like `@tailwindcss/vite` (official) are more stable.
npm install vite-plugin-tailwindVerified import paths — ran on the pinned version, not inferred.
Minimal setup to add Tailwind CSS with JIT mode in a Vite project using this plugin.
Replace with `@tailwindcss/vite` from Tailwind CSS or use `tailwindcss` standalone with PostCSS.
Create a valid `tailwind.config.js` with `content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}']`.Avoid relying on the viewer; check Tailwind output directly.
Run `npm install tailwindcss --save-dev`.
Add `content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}']` to tailwind.config.js.Use `import tailwind from 'vite-plugin-tailwind'` instead of `import { tailwind } ...`.