User-Defined Dark/Light Mode (CSS ONLY) | UI Design Theme (prefers-color-scheme)

Published: 06 July 2020
on channel: codeSTACKr
2,845
152

🆓 Download the PDF, front-end roadmap for FREE to keep you on track!
https://courses.codestackr.com/front-...

In this video, we are going to set the theme of the website using the user-defined theme preference from their operating system setting and ONLY CSS! The CSS property that we will use is called prefers-color-scheme. You can add this to any UI design.

There are several ways that we can implement themes. Generally, these only choose between light and dark mode, but any color scheme could be a choice. Giving the user the ability to choose a theme in your UI design will increase your user experience (UX).

In the next several videos I'm going to show you the different ways that you can accomplish this. There will also be some extra cool things thrown in throughout each video. So be sure to watch it to the end.

If this video helps you out, help me out by liking the video and subscribing for more videos like this.

Codepen: https://codepen.io/codeSTACKr/pen/wvM...

Chapters:
00:00 - Intro
00:54 - HTML
01:44 - CSS
_____________________________________

📚 Learn to CODE in just a FEW months here:
Treehouse Discount Code: https://treehouse.7eer.net/codeSTACKr
_____________________________________

🛠️ Tools I use:
🟠 Theme: https://marketplace.visualstudio.com/...
🟠 Font: STACKr Code (Exclusive to my VS Code Course - https://vsCodeHero.com)
🟠 SuperHero Extension Pack: https://marketplace.visualstudio.com/...

🚢 Deploy for FREE on Vercel: https://vercel.com/ambassadors/codest...
_____________________________________

💖 Show support!
PayPal: https://paypal.me/codeSTACKr
_____________________________________

** Dark/Light Examples **
Example 1:    • Simple Dark/Light Mode Theme Toggle (...  
Example 3:    • Dark/Light Mode Theme Toggle (CSS/Bas...  
Example 4:    • localStorage Dark/Light Mode Theme To...  
_____________________________________

Connect With Me:
Website: https://www.codestackr.com
Twitter:   / codestackr  
Instagram:   / codestackr  
Facebook:   / codestackr  
_____________________________________

** Affiliate Disclaimer: Some of the above links may be affiliate links, which may generate me a sales commission at no additional cost to you.

#codeSTACKr #CSS #Theme


Watch video User-Defined Dark/Light Mode (CSS ONLY) | UI Design Theme (prefers-color-scheme) online without registration, duration hours minute second in high quality. This video was added by user codeSTACKr 06 July 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 2,845 once and liked it 152 people.