Skip to content

what is html[data-theme] for? #1239

Answered by anushbhatia
MoofyWoofy asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment

Comment options

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