typestyle / csx

Utility functions for TypeStyle
https://typestyle.github.io
MIT License
102 stars 14 forks source link

contrast ratio function #8

Open notoriousb1t opened 7 years ago

notoriousb1t commented 7 years ago

Moved from https://github.com/typestyle/typestyle/issues/31

See: http://stylus-lang.com/docs/bifs.html#contrasttop-bottom Could be useful for testing web accessibility or automatically generating color palettes.