contrast-ratio icon indicating copy to clipboard operation
contrast-ratio copied to clipboard

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

Open alangwilson opened this issue 9 years ago • 4 comments

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.

alangwilson avatar Aug 31 '16 18:08 alangwilson

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.

LeaVerou avatar Sep 06 '16 20:09 LeaVerou

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

chuanqisun avatar Jul 13 '17 18:07 chuanqisun

@chuanqisun Your link is broken FYI.

ukanuk avatar May 06 '20 03:05 ukanuk

Thanks @ukanuk , fixed the link.

chuanqisun avatar May 17 '20 19:05 chuanqisun