I'm unable to get Tailwindcss classes to appear on the inline "class" attribute. But if I @apply I through the ".scss" file and use that class on the inline "class" attribute it works fine.
Does not work:
.HTML
<!-- Tailwindcss NOT working -->
<div class="bg-red-500">
<h1 class="text-9xl">HELLO</h1>
</div>
Work: .scss
.bg {
@apply bg-green-500;
}
.text {
@apply text-9xl text-red-500;
}
.HTML
<!-- Tailwindcss working -->
<div class="bg-red-500">
<h1 class="text-9xl">HELLO</h1>
</div>
Am I missing something? Appreciate the help in advance!
Thanks!