Skip to content
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

APCA support #22

Open
superhighfives opened this issue Jan 21, 2021 · 3 comments
Open

APCA support #22

superhighfives opened this issue Jan 21, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@superhighfives
Copy link
Owner

superhighfives commented Jan 21, 2021

Is your feature request related to a problem? Please describe.
As the forthcoming WCAG 3 is proposing APCA for colour contrast, it'd be great to include it. https://www.w3.org/WAI/GL/WCAG3/2020/methods/font-characteristics-contrast/

Describe the solution you'd like
Add the ability to view contrast against APCA—which is a unique challenge, given it's on an axis of colour contrast to font size and weight:

image

Thanks for flagging, @adamwathan. 🙌

@superhighfives superhighfives added the enhancement New feature or request label Jan 21, 2021
@Myndex
Copy link

Myndex commented Apr 25, 2022

Hi @superhighfives

This year marks the third anniversary of the research and development project that underlies APCA (and it is significantly more extensive than just the APCA tool). I wanted to drop a note as that lookup table was an early draft and is now obsolete.

Quick Status Update

The Basic APCA math/algorithm is stable, and has not changed in over a year. This base algorithm is probably not going to change, however, there are more advanced versions that are separate and may be introduced due to the development of new display technologies, but that is not relevant to the Basic sRGB version that is donated to the W3C for use in guidelines.

I just published APCA W3 0.1.2, which includes some key new features, such as an integrated dynamic font lookup table that automatically indicate the appropriate font/weight, alpha blending, displayP3 support, and a "reverseAPCA" where you can specify a contrast value, and either the bg or text color, and it generates the missing color.

It is on npm, npm i apca-w3

It has one dependency, which I've also placed on npm: npm i colorparsley

Also, Bridge-PCA is a drop-in replacement for WCAG 2's math. See that tool at https://www.myndex.com/BPCA/

Please let me know of any questions. The main repo discussion area is open with active discussions on APCA and related technologies: https://github.com/Myndex/SAPC-APCA/discussions

Thank you!

Andy

@foldfree
Copy link

https://www.myndex.com/APCA/
The link above is an example of an interactive tool using the APCA system. Admittedly, It is way more complex that WCAG but so much better when making color decisions.. To have it natively in PIKA would be a dream. :)

@Myndex
Copy link

Myndex commented Oct 15, 2023

Thank you @foldfree

There is also the "Bronze Simple Level" in the APCA Readability Criterion, intended to keep things as simple as WCAG 2...

Draft

https://readtech.org/ARC/tests/bronze-simple-mode/?tn=intro

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants