I have a React/TypeScript project, and I am trying to detect if a user has any of Mac OS's high contrast accessibility settings enabled: Invert colors, Use grayscale, Differentiate without color, Increase contrast, or an increased Display contrast setting.
I want to detect these using JavaScript/TypeScript.
So far, I can detect only Invert colors.
How do I detect if a user has any of the other Mac OS accessibility settings enabled?
More information:
- The prefers contrast media query is not yet available. I tried it anyway, and it doesn't work.
- The inverted colors media query tests only for the Invert colors setting.
- Apple's dev docs on color and contrast do not have a solution.
- Detecting high contrast use in other browser, OS scenarios