DEV Community

Discussion on: How to Implement "dark mode" with Gatsby & React Hooks

Collapse
 
kim_hart profile image
Kim Hart

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.