Skip to content

Daffa Pramuditya Roles: Web Developer, Freelancer, AI Engineer

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.