Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Add the ability to return relative luminance #2
I need this feature currently for a project I'm working on, pygments-high-contrast-stylesheets.
This script parses the stylesheet and identifies style rules with insufficient color contrast for the text against the background color. It also attempts to provide a recommendation for changing the text color. Whether or not to call
It could come in handy for others as well.