Tailwind Without Repeating Yourself
Tailwind v4 without copy-pasting class lists, one tool per post. It is for teams using Tailwind whose markup feels repetitive or hard to change.
The core idea comes first: DRY in Tailwind means one source of truth per decision, not @apply everywhere. Markup goes in components, values go in @theme tokens, missing CSS goes in @utility, and conditions go in @custom-variant. From there each part takes one of those tools, then cva, tailwind-variants and tailwind-merge, and shows a refactor from repeated to DRY.
By the end you'll know which tool fits which kind of repetition, and why @apply is rarely the answer.
Read it in order. Part 1 is the map every later part fills in.
1 part,oldest first