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

[eyedropper] Compute "corporate colors" #7

Open
kptdobe opened this issue Jun 23, 2022 · 0 comments
Open

[eyedropper] Compute "corporate colors" #7

kptdobe opened this issue Jun 23, 2022 · 0 comments

Comments

@kptdobe
Copy link
Contributor

kptdobe commented Jun 23, 2022

The colors are currently things like text, links, background colors. It is certainly a tricky task but it would be more useful to extract the list of colors used on the site to create a "color palette". Each color from the palette would be named with the most approaching css color name (e.g. something like projectname-lightgreen). From there the text, links could use those colors from the palette.
Extracting the list of color should be trivial (for all DOM elements, get the color and background-color properties). Finding the closest matching color name is probably an interesting math problem.

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