Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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)

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