-
Simplified, I have this in my CSS file:
I would then use it like this: However, nothing happens and no classes are generated. I don't know how to debug this. I'm using Next.js and no errors are printed in the console. Tailwind Play example: https://play.tailwindcss.com/G5LgpCF2je?file=css In Tailwind Play, I also have another utility that skips using I'm using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You'd want to use |
Beta Was this translation helpful? Give feedback.
You'd want to use
@theme
not:root
.@theme
registers the--rgb-bg-accent
variable as a theme token such thatxyzzy-accent
et al. become class name candidates. https://play.tailwindcss.com/PLwlUgWXuI?file=css