Why Your Dynamic Tailwind Classes Disappear and How to Fix Them
Tailwind only generates CSS for class names it finds as complete literal strings. Dynamic construction like `bg-${color}-500` fails silently. Fix it with a typed map module for values you control, or a narrow allowlist for external input—then verify by searching the emitted stylesheet.