Use @apply Sparingly

It's tempting to extract everything into CSS classes with @apply, but this defeats Tailwind's purpose. Save @apply for truly repeated patterns like buttons and form controls.

Master Arbitrary Values

Tailwind's arbitrary value syntax like w-[327px] or bg-[#1a1a2e] gives you escape hatches without leaving the utility-first workflow.

Component Extraction with clsx

Use clsx or cn utility functions to conditionally apply classes. This keeps component logic clean when classes depend on props or state.

Custom Design Tokens

Extend Tailwind's theme in tailwind.config.js with your brand colours, custom fonts, and spacing scales. This creates consistency across your entire project.