Skip to content

How can I change my diy components' style when toggle dark/light mode? #894

Closed Answered by brc-dd
gyhyfj asked this question in Q&A
Discussion options

You must be logged in to vote
<style scoped>
.test {
  background-color: pink;
}

:root.dark .test {
  background-color: gray;
}
</style>

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gyhyfj
Comment options

Answer selected by gyhyfj
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