tailwindlabs / tailwindcss-setup-examples

674 stars 173 forks source link

@apply not working in <style>...</style> #54

Closed Parables closed 4 years ago

Parables commented 4 years ago

Tailwind is great but I'm still stuck writing CSS because I can't use @apply directive in Svelte ... any help to resolve this?

svg {
  @apply h-8 w-8 fill-current;
}
jfdelarosa commented 4 years ago

Try using this tutorial:

https://dev.to/sarioglu/using-svelte-with-tailwindcss-a-better-approach-47ph

Parables commented 4 years ago

Am sorry okay, I forgot to close this issue. I found out about that repo later that day and even made my own template using parcel