79386924

Date: 2025-01-25 14:47:23
Score: 2.5
Natty:
Report link

If you're switching to TailwindCSS v4.0 from using safelist in v.3.4.17 make sure to pass class names to elements generated by loops as the full class name and not through concatentation. As @Karson mentioned, pass in the full string "bg-darkgreen hover:bg-hdarkgreen" instead of using bg-${color} hover:bg-h${color}.

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @Karson
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: slavic max