DEV Community

Discussion on: No Fuss Dark-Mode Toggle with React & Styled-Components! πŸŒžβ†”οΈπŸŒ–

Collapse
 
hyggedev profile image
Chris Hansen • Edited

That's great advice! I actually was planning on storing a userSettings in local storage but I wanted to make it as absolute barbones as possible πŸ‘Œ And that's really cool. Is that the exact snippet for any OS? In other words that would take my macs theme preference and apply it to the browser? Same for a windows user? How about if my OS preferred theme is set to detect time of day still work!? 🀯