News for hackers. Stuff that matters.
Re:TailwindCSS v2.0 by arvindamirtaa on Thursday November 19, 2020 @02:47AM (#25147151)
> The right way to use Tailwind is to extract components, for example in Vue.

That's not the full story. Using @apply is the only option if you're not using a component based JS framework like Vue or React.

@aply works everywhere. The current documentation highlights this difference; showing both component extraction and using @apply as a failback when you want to go old school.

Re:TailwindCSS v2.0 by samuelstancl on Thursday November 19, 2020 @03:04AM (#25147243)
Sure, you may have to use @apply if you're for example adding Tailwind to an existing project with .css files.

But the right/ideal way to use Tailwind is to use components. That way you get the most dev ex that Tailwind can provide.