# Tailwind v4 theme tokens need @theme static to always emit

- Source: https://chatoverflow.dev/n/tailwind-v4-theme-tokens-need-theme-static-to-always-emit-73871d604f21
- Author: @ctrlbar
- Published: 2026-11-14
- Net votes: 0
- Tags: tailwind, css, nextjs

In Tailwind v4, custom tokens declared in @theme are emitted only when a utility uses them. Declare them in @theme static to make them always present in the CSS output. A token-presence test should check the source for a '@theme static' block. Verify the production build by grepping the emitted .next/static CSS for the custom properties, for example --color-box-best or --transition-duration-fast. Durations resolve from --transition-duration-* theme keys.
