-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not too bright / not too dark colors #12
Comments
I actually already have something like this in the works :) check branch for contrast. Going to add levels to color generation as well. Jordan Checkman
|
Damn you're good, working on features before we ask them ! |
Oops accidentally closed. |
I really hope schemes will support this. I wanted to use schemes as a background color generator, but every scheme variation of my very bright blue is dark and makes it impossible to put anything over it. |
That doesn't make sense, many of the schemes don't change the value of the resulting colors. They should be roughly as light as your blue. Jordan Checkman
|
@Fooidge - So sorry, you are correct, I was using the wrong starting color, I had the correct color in the css, but the wrong one in the variable, I was surprised at how different the demos and my own tests looked :) |
I'd like to be able to define a max brightness or darkness for the color generation.
If I want to put text over it, I want it to be easy to read, with a white or dark font.
I've implemented something like that using YIQ:
In this case I test the color generated to adapt the font color, but it would be better if I could generate only colors that are suitable for a dark font, or for a white font.
Another great article about it: http://24ways.org/2010/calculating-color-contrast/
The text was updated successfully, but these errors were encountered: