performanceTailwind
No Dynamic Class Construction
NEVER
NEVER: Dynamically construct class names (`bg-${color}-500`); use object lookup with complete strings
Write complete class names for Tailwind to detect them
Bad
Good
Why it matters
Tailwind's build process scans your source files for complete class name strings. It cannot execute JavaScript or interpolate template literals. Dynamically constructed classes like bg-${color}-500 will be purged from production builds.