Light & Dark mode WITHOUT CSS!

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

IntermediateUI12 min

About this video

Shows how the CSS color-scheme property and its meta tag can switch form controls, scrollbars and page UI between light and dark modes, including combining it with prefers-color-scheme and browser differences. Aimed at developers who build websites.

What you’ll learn

  • Set a default color-scheme for a page using the CSS property
  • Combine color-scheme with the prefers-color-scheme media query
  • Apply light and dark modes with the color-scheme meta tag