Symptom: Dynamic classes from the database are missing
Root cause#
JIT cannot see strings that exist only at runtime.
The fix#
Safelist the pattern: { pattern: /^bg-(red|green)-500$/, variants: ["hover"] }.
Verify#
- Hard-refresh (the CSS cache is the #1 false negative)
- Run
nakshora doctorand re-build with--stats - Search the docs for the exact class — spelling is unforgiving
Related#
troubleshooting/index|All issues · faq/index|FAQ
