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

Colour grouping #102

Open
mattpilott opened this issue Apr 10, 2023 · 0 comments
Open

Colour grouping #102

mattpilott opened this issue Apr 10, 2023 · 0 comments

Comments

@mattpilott
Copy link

It would be great if colord could tell me which root colour a given colour falls into for example:
hsl(6, 93%, 71%) would be grouped under red
hsl(195, 100%, 50%) would be grouped under blue
hsl(120, 100%, 50%) would be grouped under green

There could be perhaps 10 colour groups such as red, green, blue, purple, orange, grey, brown, yellow, black, white

syntax could be like colord(#ff0000).toGroup()

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