Skip to content

@tailwindcss/postcss v4 Features #17674

@jeissler

Description

@jeissler

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions