A look at how to create a dark mode toggle switch using JS, which saves the person's preference in localStorage for the next time they visit.
Code from this video: codepen.io/kev...
///// Change to dark mode using a media query instead! • Dark mode with a media...
---
Come and hangout, ask questions, suggest ideas, and meet some awesome people over in The Community: / discord
I have a newsletter! www.kevinpowel...
I've been working on some courses! Find out more: www.kevinpowel...
---
My Code Editor: VS Code - code.visualstu...
How my browser refreshes when I save: • How to automatically r...
---
Support me on Patreon: / kevinpowell
I'm on some other places on the internet too!
If you'd like a behind the scenes and previews of what's coming up on my KZitem channel, make sure to follow me on Instagram and Twitter.
Instagram: / kevinpowell.co
Twitter: / kevinjpowell
Codepen: codepen.io/kev...
Github: github.com/kev...
Негізгі бет How to make a website light/dark toggle with CSS & JS
Пікірлер: 147