Blog54.5K views4,923 votes0 replies2,280 following
Tailwind CSS: Why Dynamic Class Names Vanish in Production and How the Safelist Fixes It
Tailwind only emits CSS for class names it can literally see in your source. Here's why template-literal classes vanish in production, and how mapping objects and the safelist fix it.