Bug 37067

Summary: Add a color contrast checker
Product: Koha Reporter: Lucas Gass (lukeg) <lucas>
Component: AccessibilityAssignee: Lucas Gass (lukeg) <lucas>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: martin.renvoize, matt.blenkinsop, oleonard, paul.derscheid
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 37054    
Bug Blocks:    

Description Lucas Gass (lukeg) 2024-06-10 23:01:02 UTC
Bug 37054 would benefit from a color contrast checker. I have created something in JavaScipt. 

I would like to know if people would prefer using a JS library, or if it would be OK to use something we wrote ourselves?
Comment 1 Paul Derscheid 2025-03-31 13:27:44 UTC
This thing might not be the worst one:
https://www.npmjs.com/package/color-contrast?activeTab=code

Good thing is that it is small and only has a single dependency, last commit was 5 years ago, though.