📐High Contrast Mode
Also known as Forced Colors Mode, Contrast Themes, Windows High Contrast
A setting that swaps screen colors for a few strong ones. Things are easy to see.
Think of it like
It is like trading your crayons for a thick black pen. Every line is easy to see.
Example
Omar turns on high contrast in Windows. A website's pale gray button becomes a plain box with a bright border, so he can find it.
Why it matters
A button shown only with a shadow or a light tint can vanish in this mode. A real border keeps it on screen.
Definition
Example code
css
@media (forced-colors: active) {
.button {
border: 2px solid ButtonText;
}
}Common mistake
Key takeaways
- 1The person picks. The design gives way.
- 2Shadows and tints go. Borders stay.
- 3Test it. Turn it on and look.