Replies: 1 comment 1 reply
-
<style scoped>
.test {
background-color: pink;
}
:root.dark .test {
background-color: gray;
}
</style> |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
gyhyfj
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to create one compoents and use it in pages, but idk how to toggle its css color when toggle dark/light mode .
For example, my component is like this:
How can I change
background-color
togray
, when toggle dark mode?Beta Was this translation helpful? Give feedback.
All reactions