Wouldn't you have to scan disparately located CSS files anyway? How many projects have you seen with nonsensical or clobbered classnames or conflicting rules?
Really for a lot of designs I think you can just eyeball it. If `px-4` looks about right, then use it. Otherwise you can find a similar component and hijack the exact padding if you want, or get it from the design.
You probably think @apply makes more sense because you know and like traditional CSS. You want to apply tailwind classes and condense them into a single reusable one. Tailwind asks you to think in a different way. The classes are aptly named (mostly) and granular (one class per css directive), so my knowledge of CSS felt very transferable.
<LinkButton4 />
Imo should be <LinkButton variant={"homepage"} />
Leveraging something like Class Variance Authority or more simply: <LinkButton className="text-xl other-override-here" />
Using tailwind-mergeI have found tailwind to be indispensable, and it pairs particularly well with React.