</bijayShrestha>./lets-talk
← cd ..
~/blog/tailwind-v4-theme-tokens.md

bijay@nepal:~/blog$ cat tailwind-v4-theme-tokens.md

Design tokens with Tailwind CSS v4’s @theme

commit 3af7b59Author: Bijay Shrestha1 min read

#tailwind#css

In Tailwind v4 there’s no tailwind.config.js by default. Instead, you declare your design tokens straight in CSS with the @theme directive, and utilities are generated from them.

@theme {
  --color-primary: #ffb646;
  --animate-blink: blink 1s steps(1) infinite;
}

That single block gives you bg-primary, text-primary, border-primary and animate-blink everywhere. For values that reference other CSS variables — like fonts from next/font — use @theme inline.

## Why it matters

Your tokens live next to your styles, they’re real CSS variables you can use anywhere, and renaming a colour is a one-line change.

EOF — thanks for reading. Questions? [email protected]