Using @reference combined with @apply syntax within a style tag with lang="scss" is invalid #20254
Unanswered
xxwangkaimin
asked this question in
Help
Replies: 3 comments 2 replies
-
|
As per the documentation:
Also, Adam Wathan (creator of Tailwind) does seem to advocate avoiding
Thus, consider using Tailwind class names directly: --- a/src/App.vue
+++ b/src/App.vue
@@ -4,13 +4,5 @@ defineOptions({
});
</script>
<template>
- <div class="app">App</div>
+ <div class="text-blue-900">App</div>
</template>
-
-<style lang="scss">
-@reference "./style.css";
-
-.app {
- @apply text-blue-900;
-}
-</style> |
Beta Was this translation helpful? Give feedback.
2 replies
This comment was marked as low quality.
This comment was marked as low quality.
This comment was marked as spam.
This comment was marked as spam.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What version of Tailwind CSS are you using?
v4.3.0
What build tool (or framework if it abstracts the build tool) are you using?
Vite 8.0.12
What version of Node.js are you using?
v22.18.0
What browser are you using?
Chrome
What operating system are you using?
Windows
Reproduction URL
https://stackblitz.com/edit/vitejs-vite-oebqbbpw?file=src%2FApp.vue
Describe your issue
Using @reference combined with @apply syntax within a style tag with lang="scss" is invalid
Beta Was this translation helpful? Give feedback.
All reactions