Marked as helpful by the asker
Tailwind only ships classes it can see in your source. Dynamic strings hide them:
// invisible to Tailwind
className={`bg-${color}-500`}
// visible
className={color === 'red' ? 'bg-red-500' : 'bg-blue-500'}Search your code for template literals inside className. v0 loves them. In dev everything is compiled on demand, so it hides the problem until the production build.