-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Closed
Labels
Description
I am trying to setup tailwind with Vite and Vue for using @apply rules inside of SFCs but am having trouble getting the newer utilities to work such as inset-0. The older utilities all work as @apply rules and I'm not entirely certain where the issue is; I think is an issue w/ @tailwindcss/postcss which is needed still in my setup w/ v4. With only the vite plugin as shown in the docs things don't work since I'm using postcss (.pcss) files and also postcss inside of my SFCs. Any help with this is much appreciated because I am loving v4, nice work!
"tailwindcss": "^4.1.4",
"@tailwindcss/postcss": "^4.1.4",
"@tailwindcss/vite": "^4.1.4",
"vue": "^3.4.19"
The specific error I get is
[plugin:vite:css] [postcss] Cannot apply unknown utility class: inset-0