-
Hello, everyone!So, I've made a Vite project selecting React and JavaScript, later installing Tailwind CSS following the steps of the official documentation. I want to make a button where the user can select between dark/light mode, with the browser reminding what was the user's last choice every time they access the page, which would require to use I remember I once changed Technically, the moment I define How do I proceed?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The executable is in a separate package for v4, but you shouldn't need it since you are using Vite. The I couldn't see any Theme Switcher in the project you provided. Furthermore, it seems like you forgot to save your changes since I could not see |
Beta Was this translation helpful? Give feedback.
The executable is in a separate package for v4, but you shouldn't need it since you are using Vite. The
init
command no longer exists in v4 anyway.I couldn't see any Theme Switcher in the project you provided. Furthermore, it seems like you forgot to save your changes since I could not see
@custom-variant dark (&:where(.dark, .dark *));
in any CSS file. You also seem to have doubled up on CSS too; you'd only need one ofindex.css
orapp.css
, not both.