vigetlabs / ca11y

A lightweight accessible dependency-free datepicker
http://code.viget.com/ca11y
26 stars 6 forks source link

Issue a Sass warning if colors aren't accessible #12

Open mzlock opened 8 years ago

mzlock commented 8 years ago

Issue a warning if the user chooses colors that aren't accessible.

Sass warnings: http://www.sitepoint.com/using-sass-error-warn-and-debug-directives/

Sass contrast checker: https://gist.github.com/FStop/8959422

This is definitely in the "shoot for the moon" column, but thought I'd add it.

mzlock commented 8 years ago

We'd be looking for a contrast ratio of 4.5:1 for WCAG AA

greypants commented 8 years ago

iiiiinteresting! This would be fun.

solomonhawk commented 8 years ago

Ca11y's default styles should absolutely pass this test.

But with regard to user styles, should this be a concern of Ca11y? To me this seems like an external thing. I think the best thing to do would be to expound on this in the README and provide some links and recommendations.