Most applications nowadays have dark mode: your command line, your IDE, your browser, etc. Why would your site be any different? Your website can a...
For further actions, you may consider blocking this person and/or reporting abuse
What's more likely to happen in this case is that you'll have color set on specific parts of the site for different things. So the better thing to do is to use CSS variables.
Simple but effective. Thanks for sharing
Just to enrich the conversation I want to add that another consideration is that if you are using
styled-componentsa dark theme might be accomplished with something in a similar way, for example:When I change to dark theme in Firefox then this line:
window.matchMedia("(prefers-color-scheme: dark)").matches
still returns false.
So so slick. Love it
How to change block constanta and let to global scope javascript?
Awesome! Good work!
Mine is not working
Sorry, how do you activate the dark scheme?
howtogeek.com/359033/how-to-enable...