-
-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Web accessibility is very important. For a syntax highlighting library this is particularly relevant when it's used for a website that is meant to be used by many users, some of whom may not have perfect vision and struggle to read code highlighted with themes that have a low contrast. The WCAG web accessibility standard defines the following AA success criteria:
The visual presentation of text and images of text has a contrast ratio of at least 4.5:1
I think PrismJS should help making the web more accessible by implementing the following two changes:
-
Making the default theme meet the WCAG AA standard for contrast.
-
Making the download page raise awareness about the impact contrast has on accessibility. Which can be done just by indicating which of your themes meet WCAG AA and providing a link to an informative website.
I have already raised the same issue with Pygments (pygments/pygments#1718) and Highlight.js (highlightjs/highlight.js#3392) and they are working on addressing these concerns.
While I unfortunately don't have any time to help you implement these changes, I am more than happy to try to answer any questions you have in this matter.