-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Description
What version of Tailwind CSS are you using?
v4.1.13
What build tool (or framework if it abstracts the build tool) are you using?
"vite": "^7.1.7"
What version of Node.js are you using?
bun 1.2.22
What browser are you using?
Chrome
What operating system are you using?
macOS
Reproduction URL
https://play.tailwindcss.com/hdK4SMZs1n?file=css
Describe your issue
Tailwind does not prefix the variables in the @variant
section. This i needed to do dark mode with variants like its described in the docs.
Is there another way to better handel darkmode?
I cam up with this - but this forces you to have everything basically three times in there.
https://play.tailwindcss.com/AMDMuSVO4x?file=css
This works but seems hacky:
https://play.tailwindcss.com/dGOuUYA7av?file=css
Maybe i completely miss understood / miss use something smth.
But i think it would be cool to be able too prefix all variables that are use. Even the ones in darkmode. I would argue that darkmode should be a requirement in todays time and age and we need a clean way