Skip to content
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

Get background-color and color #5

Closed
Kikobeats opened this issue Oct 19, 2017 · 1 comment
Closed

Get background-color and color #5

Kikobeats opened this issue Oct 19, 2017 · 1 comment

Comments

@Kikobeats
Copy link
Member

Kikobeats commented Oct 19, 2017

Inspired in: https://github.com/FormidableLabs/react-image-palette/blob/master/src/get-image-palette.js#L204

Instead of return an array of dominant colors, another great approach is specify what background-color and color combination could be great.

For do that, it's necessary determinate the contast color according with WCAG accessibility guidelines.

@Kikobeats
Copy link
Member Author

Moved into a separate package: https://github.com/Kikobeats/colorable-dominant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant