Replies: 1 comment 1 reply
-
In tailwind.config.js you need to add the following: module.exports = {
content: [
.....
],
darkMode: "class", Then you can use the "dark:" selector of tailwind to do the following: <DarkIcon className="hidden dark:flex" />
<LightIcon className="dark:hidden" /> |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to change an icon when light mode is set and change it to other icon when dark mode is set
how to do that
Beta Was this translation helpful? Give feedback.
All reactions