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

Deduplicate colors that are aliases, e.g., "gray" and "grey". #1

Open
erictheise opened this issue Jun 17, 2021 · 0 comments
Open

Deduplicate colors that are aliases, e.g., "gray" and "grey". #1

erictheise opened this issue Jun 17, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@erictheise
Copy link
Owner

The scratchpad doesn't filter out colors that have multiple names. These include the numerous variants involving gray and grey as well as fuchsia/magenta and aqua/cyan.

One approach would be to manually delete duplicates from colors.js. Another would be to test against a known list of duplicates when assembling the array in distance.js.

At some point it may be useful to filter colors by which version of the CSS spec they appeared in and a brute force manual deletion would complicate that.

Working from the MDN list.

@erictheise erictheise added the bug Something isn't working label Jun 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant