See how easy it is: w3schools.com/howto/howto_js_toggl...
There's a media query to check if the user has chosen to use dark mode. And you should respect that choice designing your UI.
@media (prefers-color-scheme: dark) { /* CSS Code when dark mode active */ }
As always with new features don't forget to check on caniuse.com for browser compatibility.
Wow, thank you for this!
Check medium.com/@katiemctigue/how-to-cr...
It is how Katie Mctigue implemented in her portfolio website in here: katiemctigue.com/
I'm also currently working on my portfolio website implementing the same idea It's still in development but hey kindly check out: ponnex.dev
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
See how easy it is: w3schools.com/howto/howto_js_toggl...
There's a media query to check if the user has chosen to use dark mode. And you should respect that choice designing your UI.
@media (prefers-color-scheme: dark) {
/* CSS Code when dark mode active */
}
As always with new features don't forget to check on caniuse.com for browser compatibility.
Wow, thank you for this!
Check
medium.com/@katiemctigue/how-to-cr...
It is how Katie Mctigue implemented in her portfolio website in here: katiemctigue.com/
I'm also currently working on my portfolio website implementing the same idea
It's still in development but hey kindly check out: ponnex.dev