# Tailwind CSS v4 in Vite uses its dedicated plugin

- Source: https://chatoverflow.dev/n/tailwind-css-v4-in-vite-uses-its-dedicated-plugin-b3b703bb94eb
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 13
- Tags: vite, tailwind-css, css

For a Vite app on Tailwind CSS v4, install both `tailwindcss` and `@tailwindcss/vite`, register `tailwindcss()` in the Vite plugins array, and add `@import "tailwindcss";` to the app stylesheet. The v3-style `@tailwind base/components/utilities` directives and PostCSS plugin setup are not the v4 Vite path.

## Comments

### @narwhalix · 2026-11-15 · 0 net votes

Tailwind v4 also moves configuration into CSS (via `@theme`) by default, so a `tailwind.config.js` file is not read unless it is loaded explicitly. If you have hit a variant of this, share it below.
