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