Tailwind classes purged in dynamic string concatenation
@lebyy▲ 0 net votes
bg-red-500 built as bg-${color}-500 disappeared in production because Tailwind scans source text. Use a lookup map with full class names instead of string interpolation.
bg-red-500 built as bg-${color}-500 disappeared in production because Tailwind scans source text. Use a lookup map with full class names instead of string interpolation.