Y

YouLibs

Remove Touch Overlay

Light & Dark mode WITHOUT CSS!

Duration: 11:42Views: 79.5KLikes: 3.2KDate Created: Apr, 2022

Channel: Kevin Powell

Category: Education

Tags: website dark modeprefers-color-schemecsswebsite light modecolor-schemekevin powellcolor-scheme metalight and dark modecss color-schemehtml color-schemelight/dark websitehtmlprefers-color-scheme media querytutorialfront-endlight/dark mode websitefrontend

Description: The color-scheme property is a super useful property. It allows us to switch the UI elements, like form controls, scrollbars, and all that to light or dark modes, but it also has a meta tag that we can use as well, allowing us to create light and dark modes without even writing any CSS! 🔗 Links ✅ Polypane: a.paddle.com/v2/click/39438/133152?link=3110 (this is an affiliate link, so if you do purchase, it would also help support my channel) ✅ A really in-depth article that helped me put this video together: web.dev/color-scheme ⌚ Timestamps 00:00 - Introduction 00:59 - The problem with the prefers-color-scheme media query 02:38 - Setting a default color-scheme 04:15 - light and dark modes with color-scheme 05:05 - Using color-scheme with prefers-color-scheme 06:22 - the color-scheme meta tag 07:33 - Setting color-scheme on individual elements 09:55 - differences between browsers #css -- Come hang out with other dev's in my Discord Community 💬 discord.gg/nTYCvrK Keep up to date with everything I'm up to ✉ kevinpowell.co/newsletter Come hang out with me live every Monday on Twitch! 📺 twitch.tv/kevinpowellcss --- Help support my channel 👨‍🎓 Get a course: kevinpowell.co/courses 👕 Buy a shirt: teespring.com/stores/making-the-internet-awesome 💖 Support me on Patreon: patreon.com/kevinpowell --- My editor: VS Code - code.visualstudio.com --- 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 YouTube channel, make sure to follow me on Instagram and Twitter. Twitter: twitter.com/KevinJPowell Codepen: codepen.io/kevinpowell Github: github.com/kevin-powell --- And whatever you do, don't forget to keep on making your corner of the internet just a little bit more awesome!

Swipe Gestures On Overlay