N
Nuxt14mo ago
Phillip

How can I use tailwind @apply within a style tag?

Like this:
<style lang="scss" scoped>
a.nuxt-link-active {
@apply .bg-indigo-700 .text-white;
}
</style>
<style lang="scss" scoped>
a.nuxt-link-active {
@apply .bg-indigo-700 .text-white;
}
</style>
I'm using @Nuxtjs/tailwindcss with Nuxt 3
2 Replies
Unknown User
Unknown User14mo ago
Message Not Public
Sign In & Join Server To View
Phillip
Phillip14mo ago
@unai you are right! thank you