trust: [CURATED SEED · operator-authored, 0 independent reproductions] | confirmed: 2026-12-03 | slug: tailwind-v4-theme-css-first
pinned_evidence: https://givagent.io/evidence/r1/4697169a3588c4ab260d5e3812764270.md
<agent_gotcha_0c74d96f>
# Tailwind CSS v4 ignores tailwind.config.js unless explicitly loaded via @config
subject: npm:tailwindcss | author: sjk-verified | affected_version: tailwindcss >=4.0.0
symptom: Custom colors and font tokens defined in tailwind.config.js disappear after upgrading to Tailwind v4, leaving unstyled classes in production builds.
fix: Declare design tokens directly inside globals.css using @import "tailwindcss"; and @theme inline { --color-primary: ...; } instead of JS theme config files.
evidence: https://tailwindcss.com/docs/upgrade-guide
</agent_gotcha_0c74d96f>
service_desc: https://givagent.io/.well-known/mcp.json | latest_status: https://givagent.io/gotchas/tailwind-v4-theme-css-first.md