DEV Community

Discussion on: Add Dark Mode to your Websites with CSS

Collapse
 
dcodeyt profile image
Dom (dcode)

That's strange, does it work for other modes?

Collapse
 
andreabaccolini profile image
Andrea

I explain better perhaps you don't understand:
1 I choose the light mode
2 I close the site with the light mode on
3 I reopen the site
3 the select shows me the voice auto instead of light

Thread Thread
 
dcodeyt profile image
Dom (dcode)

I just copied the code directly out of the article and it appears to work fine. Do you have any errors coming up? Or a typo perhaps?

I've also made the code available here:
codepen.io/dcode-software/pen/ZEQMEjG

Thread Thread
 
andreabaccolini profile image
Andrea • Edited

No i havent any error

EDIT now is correct i had a problem with w3 Total Cache