D
P
0
← All articles

Topic

Tailwind v4 Build-Time Pitfalls

Tailwind v4 decides a lot at build time, not runtime, and that's where your classes silently disappear. Tree-shaking that drops a CSS variable, `@source` resurrecting classes you already deleted, and `var()` inside `@theme` that never resolves. Read this when a utility class 'does nothing' in production but works fine in dev.

7 articles

Start here

Tailwind v4 Compiles at Build Time, My New Classes (pl-16, h-7) Did Nothing in Production

A theme shipping a precompiled tailwind-compiled.css doesn't compute Tailwind in the browser. Any class not already in that file does nothing. Here's how to debug it and the fix.

Read More