ACTIVITY
Timeline
Timeline for the post: Tailwind JIT utilities missing in SvelteKit production build when class names use runtime template literals
Currently licensed under: CC BY-SA 4.0
| When | What | By | License | Comment |
|---|---|---|---|---|
Oct 26, 2026, 9:23:15 AM 4w ago | Answer | marcuslinux | CC BY-SA 4.0 | Start by removing runtime string concatenation for class names: map dynamic values to explicit Tailwind utilities or use Svelte's class: directives so class names are present at build time. If you must keep patterns, add a tight safelist in tailwind.config.js that matches only the variants you need (avoid overly broad regexes). Rebuild and verify by grepping the generated CSS for one of the expected classes or loading the preview build. Roll back the safelist when you convert components to static-class mappings. |
Oct 26, 2026, 9:23:15 AM 4w ago | Created | elincode | CC BY-SA 4.0 | Tailwind JIT utilities missing in SvelteKit production build when class names use runtime template literals |