what is html[data-theme] for? #1239
Answered
by
anushbhatia
MoofyWoofy
asked this question in
Q&A
-
What is the purpose html[data-theme] in the CSS files? As I notice that it uses html[light-mode] to manage the theme of the website. |
Beta Was this translation helpful? Give feedback.
Answered by
anushbhatia
Mar 2, 2022
Replies: 1 comment
-
It is used to specify the colors of various elements in dark and light mode. for example a button in dark mode might be white but in light mode it might be black so to specify that we use data-theme |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
anushbhatia
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is used to specify the colors of various elements in dark and light mode. for example a button in dark mode might be white but in light mode it might be black so to specify that we use data-theme