Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/CoreyGinnivan/whocanuse
WhoCanUse is a tool that brings attention and understanding to how color contrast can affect different people with visual impairments.
https://github.com/CoreyGinnivan/whocanuse
a11y accessibility accessibility-service color contrast-ratio
Last synced: 3 months ago
JSON representation
WhoCanUse is a tool that brings attention and understanding to how color contrast can affect different people with visual impairments.
- Host: GitHub
- URL: https://github.com/CoreyGinnivan/whocanuse
- Owner: CoreyGinnivan
- License: mit
- Created: 2018-12-06T05:27:05.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2024-06-12T04:42:57.000Z (8 months ago)
- Last Synced: 2024-08-01T12:30:23.280Z (6 months ago)
- Topics: a11y, accessibility, accessibility-service, color, contrast-ratio
- Language: JavaScript
- Homepage: https://whocanuse.com/
- Size: 1.64 MB
- Stars: 451
- Watchers: 11
- Forks: 48
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-list - whocanuse
README
WhoCanUse.com[![All Contributors](https://img.shields.io/badge/all_contributors-7-orange.svg?style=flat-square)](#contributors)
**What is WhoCanUse?**
It's a tool that brings attention and understanding to how color contrast can affect different people with visual impairments.
The Web Content Accessibility Guidelines (WCAG) covers a wide range of recommendations for making Web content more accessible. Just a tiny part of making the web more accessible is accommodating for those with a form of blindness or low vision.
The standard grading system is a great start, but I thought I'd try to humanize the people who are affected by the different grades.
**What is WhoCanUse?**
Where did you get the info from?The percentages are sourced from both colour-blindness.com and Vision Australia. P.S. You're both the best, thankyou ✌️
**Your maths is off, it doesn't add up to 100%...?**
Good eyes! (haha) The population data provided are estimates for individual impairments, and don't cover the vast amount of visual impairments in the world. This is to give you not just an understanding of how color contrast affects different people but also who it can affect.
**I'm fascinated by how this works, can you tell me more?**
Of course! There's a few stages to get to this point. First we figure out the contrast between two HEX values. For this we're using a plugin called chroma.js - this does the heavy lifting for us. Once we have the ratio (and using font size and font weight) we can apply a grade to that specific color combo.
For the color blindness options we're using another plugin aptly called Color-blind that converts our HEX codes in to ones that would be seen by people with the different impairments, then we can apply our same process to obtain the color ratios and determine their grade.
For cataracts, glaucoma, low vision, and the situational events I've personally created simulations to help identify their rating.
**What does a failing grade mean?**
The grading uses a combination of color contrast, text size and text weight. A fail simply means that the color combination offers some visual strain to the person seeing it and should be avoided if possible.
**Can I help contribute?**
Absolutely! This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind are welcome!
Check out [CONTRIBUTING.md](CONTRIBUTING.md) for more info.