siege-media / contrast-ratio

A tool to calculate the contrast ratio between any two valid CSS colors.
https://www.siegemedia.com/contrast-ratio
MIT License
2.45k stars 221 forks source link

Allow for bulk import of colors (via JSON or CSV) #20

Open alangwilson opened 8 years ago

alangwilson commented 8 years ago

I'm working to create a library of color scales with consistent contrast ratios. With 20+ values each and 16 colors that's a LOT of copy/paste. I would love a way to bulk import them and get back a new column showing the contrast ratios. In my ideal world it would be a Google Sheets script.

LeaVerou commented 8 years ago

That sounds like a very useful feature, but I don't currently have time to work on it. If anyone does, I would accept a PR that adds this functionality as long as it doesn't get in the way of simple 1 color usage.

chuanqisun commented 7 years ago

@alangwilson, I have a similar implementation that supports json bulk validation. Hope it helps: https://chuanqisun.github.io/contrast-matrix

ukanuk commented 4 years ago

@chuanqisun Your link is broken FYI.

chuanqisun commented 4 years ago

Thanks @ukanuk , fixed the link.