What does "@custom-variant dark (&:is(.dark *));" do? #6840
Answered
by
GauthierPLM
Toshimichi0915
asked this question in
Q&A
-
When I create a new shadcn project by
@custom-variant annotation is something I don't understand, and when I look it up on the Internet, few results show up. What is |
Beta Was this translation helpful? Give feedback.
Answered by
GauthierPLM
Mar 6, 2025
Replies: 1 comment 1 reply
-
It's a native feature of TailwindCSS for handling dark mode: https://tailwindcss.com/docs/dark-mode#toggling-dark-mode-manually |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Toshimichi0915
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's a native feature of TailwindCSS for handling dark mode: https://tailwindcss.com/docs/dark-mode#toggling-dark-mode-manually