Tailwind v4 dark mode: the @theme vs @theme inline gotcha that broke my contrast tests
TL;DR: in Tailwind v4 there are two ways to declare a color token in @theme. One compiles the hex value into your utility classes. The other emits a var(--...) reference that you can override from a wrapper class. Only one of these supports a multi-layer dark-mode cascade. I shipped six surfaces wit
ORIGINAL SOURCE →via Dev.to
ADVERTISEMENT
⚡ STAY AHEAD
Events like this, convergence-verified across 689 sources, land in your inbox every Sunday. Free.
GET THE SUNDAY BRIEFING →RELATED · conflict
- [CONFLICT] Intermodal Asia
- [CONFLICT] UNDRR Regional Office for Arab States
- [CONFLICT] Digital security in war and conflict: challenges for civil society and tools for resilience
- [CONFLICT] Entries now open for the prestigious Crew Connect Global Awards 2026
- [CONFLICT] Securing the Untrusted Agentic Development Layer
- [CONFLICT] SON DAKİKA HABERİ: Burcu Köksal: Yarın AK Parti’ye katılıyorum, çok huzurluyum, içim çok rahat