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

Adjusting for web safe colors #19

Open
sudojunior opened this issue Sep 16, 2022 · 0 comments
Open

Adjusting for web safe colors #19

sudojunior opened this issue Sep 16, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@sudojunior
Copy link
Member

'web safe' refers to the non-standard of colours that are considered acceptable for use on websites. The code is likely to generate a number outside of this specific set of colours, so there can be a consideration to cover the colours that don't fall in that range... or just use the color api response where it provides its closest match.

interface NameData {
value: string;
closest_named_hex: string;
exact_match_name: boolean;
distance: number;
}

https://css-tricks.com/using-javascript-to-adjust-saturation-and-brightness-of-rgb-colors/

@sudojunior sudojunior added the enhancement New feature or request label Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant