Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jasonday/color-contrast
Contrast checking in vanilla js (and jQuery)
https://github.com/jasonday/color-contrast
a11y accessibility color-contrast color-contrast-checker contrast-checking
Last synced: about 2 months ago
JSON representation
Contrast checking in vanilla js (and jQuery)
- Host: GitHub
- URL: https://github.com/jasonday/color-contrast
- Owner: jasonday
- License: apache-2.0
- Created: 2018-11-09T16:31:43.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-27T18:26:07.000Z (almost 5 years ago)
- Last Synced: 2024-10-15T08:47:48.690Z (3 months ago)
- Topics: a11y, accessibility, color-contrast, color-contrast-checker, contrast-checking
- Language: JavaScript
- Homepage: https://jasonday.github.io/color-contrast/test/
- Size: 35.2 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# color-contrast
Contrast checking## To do:
* test against forms
* check for svg fill (overrides CSS color)
* check if element or background has an rgba alpha transparency and call out need for manual review
* ~~port to javascript~~ Done
* ~~test for background images~~ Done
* Test text color against colors in linear gradient### Potentials
* UI Components - WCAG 2.1 1.4.11 Non-text contrast: https://www.w3.org/TR/WCAG21/#non-text-contrast