Hello. I want a dark mode by default, but when I use const darkMode = useDarkMode(true) it still keeps it to light mode by default. Any idea ?
const darkMode = useDarkMode(true)
Hard to know without seeing your code, my first guess is that your ‘dark-mode’ and ‘light-mode’ classes are applying the wrong CSS. Double check which classname is being applied to the body and which css properties are attached to those classes.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.