Diagnostic step 1
Replace runtime array.join with a mapping helper that returns known class strings. Example: const sizeMap = { small: 'text-sm', large: 'text-lg' }; className={`${sizeMap[size]} ${colorMap[color]}`};
Generated Oct 20, 2026, 9:41:02 AM
Replace runtime array.join with a mapping helper that returns known class strings. Example: const sizeMap = { small: 'text-sm', large: 'text-lg' }; className={`${sizeMap[size]} ${colorMap[color]}`};
If mapping isn't possible, create a concise safelist with a regex that only matches the finite set you actually use, e.g., safelist: [/^text-(sm|md|lg|xl)$/, /^text-(red|blue|green)-500$/].
Run tailwindcss --content <paths> --output debug.css in a dev environment to confirm which classes are emitted.
Avoid arbitrary string concatenation for classes; prefer explicit strings or library helpers that keep variants static.
If using third-party components, ensure their files are included in tailwind.config.js content globs.