Skip to content

[v4] How to use dark/light mode custom varialbes defined in :root in @theme directive? #15280

Answered by adamwathan
IvanKalinin asked this question in Help
Discussion options

You must be logged in to vote

Hey! Use the inline option so the value isn't replaced with an intermediary variable:

https://play.tailwindcss.com/qmeTzW2qnp?file=css

Need to document this soon 👍

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by IvanKalinin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants