News for hackers. Stuff that matters.
Re:Goodbye CSS Modules, Hello TailwindCSS by verisimilidude on Friday November 05, 2021 @02:12AM (#29115995)
Yes, you can use Tailwind utility classes within your own CSS files. The Tailwind syntax for creating custom classes is @apply. Here's how they recommend approaching the problem.

https://tailwindcss.com/docs/extracting-components

I find @apply useful for styling HTML that I don't directly control, such as rendered Markdown. Otherwise, I do prefer Tailwind's suggestion to use templates/components instead of custom classes, wherever it makes sense.

There are no comments on this comment yet.