Maxim Mironjuk
-
February 14, 2026
Once a user turns on Windows High Contrast mode, the browser replaces most self-defined colors, backgrounds, and shadows with a small, fixed palette of system colors, controlled through the forced-colors media query. For an Alpine component built with Tailwind utility classes, custom gradients, or its own focus styles, that can leave controls suddenly invisible or indistinguishable from each other. This article covers how the forced-colors mode works, which system-color keywords are available, and how to avoid typical pitfalls such as disappearing focus indicators.