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

Channel:
Subscribers:
296,000
Published on ● Video Link: https://www.youtube.com/watch?v=BeySzvnE6Ew



Duration: 10:30
2,763 views
153


πŸ†“ Download the PDF, front-end roadmap for FREE to keep you on track!
https://courses.codestackr.com/front-end-web-developer-roadmap-2020

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/wvMyXdO

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/items?itemName=codestackr.codestackr-theme
🟠 Font: STACKr Code (Exclusive to my VS Code Course - https://vsCodeHero.com)
🟠 SuperHero Extension Pack: https://marketplace.visualstudio.com/items?itemName=codeSTACKr.superhero-extensions

🚒 Deploy for FREE on Vercel: https://vercel.com/ambassadors/codestackr
_____________________________________

πŸ’– Show support!
PayPal: https://paypal.me/codeSTACKr
_____________________________________

** Dark/Light Examples **
Example 1: https://youtu.be/b4FBTr5pSgw
Example 3: https://youtu.be/Co9rNzQoZg0
Example 4: https://youtu.be/_raOFZAYXD4
_____________________________________

Connect With Me:
Website: https://www.codestackr.com
Twitter: https://twitter.com/codeSTACKr
Instagram: https://instagram.com/codeSTACKr/
Facebook: https://facebook.com/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




Other Videos By codeSTACKr


2020-08-13SPEED RUN: Build a CRUD API with PrestoAPI & MongoDB Atlas in 9 Minutes! Then Airbnb Clone!
2020-08-11Building BATTLESHIPS Multiplayer Game with Node.js, Express, Socket.io, Heroku | (2/3)
2020-08-07GSAP Typing Animation | Tween & Timeline Basics (2020)
2020-07-29Next Level GitHub Profile README (NEW) | How To Create An Amazing Profile ReadMe With GitHub Actions
2020-07-24There's more to CONSOLE than .log( ) | Things you didn't know console could do!!
2020-07-23Simple React.js User Login Authentication | Auth0
2020-07-16Top 10 VS Code Updates You Don't Know About!! (2020)
2020-07-14localStorage Dark/Light Mode Theme Toggle (CSS/JavaScript) | UI Design
2020-07-10Dark/Light Mode Theme Toggle (CSS/Basic JavaScript) | UI Design
2020-07-07Limited Offer! The Frontend Developer Career Path (@Scrimba)
2020-07-06User-Defined Dark/Light Mode (CSS ONLY) | UI Design Theme (prefers-color-scheme)
2020-07-03Simple Dark/Light Mode Theme Toggle (CSS ONLY) | UI Design
2020-06-265 Steps to THINK in React and Easily Create a ReactJS App From Scratch! (Bonus: Tailwind CSS)
2020-06-20How To Change CSS Values With A Slider! - CSS Custom Properties (Variables) & JavaScript
2020-06-13Microinteractions: Awesome Password Validation Animation
2020-06-05Developer Survey 2020 - Check Out These Shocking Results! (Stack Overflow)
2020-06-03Notion + YouTube - A Powerful Combination for Productivity
2020-05-29How to use Regular Expressions (RegEx) in JavaScript | Tutorial in UNDER 20 Minutes (2020)
2020-05-26Lift State Up in React.js with Hooks (2020)
2020-05-22Dealing with Impostor Syndrome (You Are Good Enough!)
2020-05-20Best Programming Tutorial Ever! {Funny}



Tags:
dark mode
light mode
dark theme
night mode
dark mode css
dark mode tutorial css
dark mode with css variables
dark light mode
dark light web design
dark light mode ui design
css toggle
ui design
dark light css switcher
light dark mode
light dark mode css
light dark mode tutorial
light mode css
light/dark mode
css
css dark mode
dark light mode css
prefers color scheme
prefers-color-scheme
css prefers dark mode
css prefers-color-scheme
css switcher