Replies: 2 comments 1 reply
-
Hey! Can you share a minimal reproduction repo so we can take a look? Should work just fine, so it will be related to your setup: ![]() |
Beta Was this translation helpful? Give feedback.
-
This is a common mistake if you're trying to use The documentation also points out that you first need to reference TailwindCSS with <style lang="postcss">
@reference "tailwindcss";
.example {
@apply bg-red-500;
}
</style> Or if you need your configuration, use a relative reference to your main CSS file. <style lang="postcss">
@reference "./../../assets/styles/css/main.css"; /* use your own relative path */
.example {
@apply bg-custom;
}
</style> If this path is too long, you can create an alias for it in your package.json {
"imports": {
"#main.css": "./assets/styles/css/main.css"
},
} <style lang="postcss">
@reference "#main.css";
.example {
@apply bg-custom;
}
</style> |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
"tailwindcss": "^4.1.13",
Beta Was this translation helpful? Give feedback.
All reactions