adobe / leonardo

Generate colors based on a desired contrast ratio
http://www.leonardocolor.io
Apache License 2.0
1.97k stars 108 forks source link

Defined colour value included in "Generated Colors" #149

Open mtsweir opened 2 years ago

mtsweir commented 2 years ago

Description

Would like to include the specific Key Color in the Generated Colors, as working with brand colors I would want this as part of the color scale.

Why do you need this feature?

Including the primary color would be ideal as to have a scale based on the initial color.

Additional context

None

NateBaldwinDesign commented 2 years ago

Interesting, so one of the key colors would be flagged in some way to indicate it should be returned in the output? This would lose the ability to specify contrast for the color, is that ok?

bzalasky commented 2 years ago

Could you do this for a default contrast value by making sure your array of contrast ratios includes the contrast ratio of your brand color against your background color?

gps03 commented 2 years ago

I second this. There seem to be several request for this (#77, #57, #149). I have specific corporate colors that must be used so I need to be able to lock one end of the lightness scale at the exact color I specified and then see ratios for other colors that work against that background. Right now you can only "lock" black or white as the background by moving the slider to 0 or 100. It's an impossible guessing game to try to get the lightness slider to your defined color.

Likewise, I need to see where my defined color falls out in the set and see if it passes usability testing.

So perhaps the needed feature is to be able to set the slider to a specific hex value.

sumitshinde-84 commented 1 year ago

I would like to work on this issue , can you please assign it to me?