-
-
Notifications
You must be signed in to change notification settings - Fork 210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement Advanced Perceptual Contrast Algorithm (APCA) #562
Comments
Note that it might make sense to wait a little since there seem to be changes to the algorithm still: |
Here is the Chrome implementation: https://chromium.googlesource.com/devtools/devtools-frontend/+/c88c76b465f2dc8a853fe2a0997ccbfbff0e5bac/front_end/common/ColorUtils.js#88 |
Hello, I just stumbled upon this issue thread. I wanted to mention a few related things.
Please feel free to hit me up with any questions or comments. Thank you, Andy Andrew Somers THE REVOLUTION WILL BE READABLE |
Summary
Google Chrome added a new experimental feature to replace the AA/AAA contrast ratio guidelines with APCA.
In that spirit, it seems reasonable to me to add that algorithm to polished as well.
The Algorithm is said to be more context depended (font size, weight). I am not sure, whether Chrome uses those values as parameters for the calculation or just to make suggestions. (This needs investigation).
The standard implementation only takes two colors as input which seems to make the most sense to me, as polished is a color lib.
You can also check out this Demo, which is one of the more confusing things I've looked at.
Basic Example
Reasoning
In the long run this may very well replace WCAG AA/AAA contrasts, as it is seemingly better suited for perceptual contrasts.
If used more it would presumably result in more accessible (color-contrast-wise) web in general.
I'd be happy to try and create a PR (following the standard implementation) if there is enough interest in this.
The text was updated successfully, but these errors were encountered: