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.
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.