Vite plugin for Windi CSS, a utility-first CSS framework that is fully compatible with Tailwind CSS v2 but 20-100x faster due to on-demand generation and HMR. Current stable version is 1.9.4, updated to support Vite 6. It offers attributify mode, variant groups, alias config, and design-in-devtools features. The project is actively maintained but Windi CSS is sunsetting; new projects are recommended to seek alternatives like Tailwind CSS v4 or UnoCSS. Ships TypeScript types. Peer dependency on Vite.
npm install vite-plugin-windicssVerified import paths — ran on the pinned version, not inferred.
Adds Windi CSS to a Vite project. Place in vite.config.ts and optionally configure via windi.config.ts.
Migrate to an alternative like UnoCSS (unocss) for similar on-demand utility-first CSS.
Upgrade to v1.9.4 or later to support modern Vite versions.
Use import vitePluginWindicss from 'vite-plugin-windicss' (default import).
Upgrade to v1.9.1 or later to get type declarations.
Upgrade to at least v1.9.3 for Vite 5 or v1.9.4 for Vite 6.
Update to v1.9.1+ and use default import: import vitePluginWindicss from 'vite-plugin-windicss'
Upgrade to v1.8.11 or later.
Run npm install windicss