Forced Colors and CSS

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

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

IntermediateUIAccessibility16 min

About this video

Kevin Powell explains how high-contrast mode overrides page colours and how to test it, using Polypane and the forced-colors media query. He shows how to keep interface details such as outlines and icons visible when users take control of colours.

What you’ll learn

  • Emulate high-contrast mode in Chrome and Polypane to see how a page changes
  • Use the forced-colors media query to adapt styles for forced colors
  • Keep outlines and key UI details visible when system colours replace your own