metafizzy / huebee

🐝 1-click color picker
https://huebee.buzz
403 stars 43 forks source link

Set input text color to bg color on change? #28

Closed wbelk closed 3 years ago

wbelk commented 4 years ago

Is there a way to set input text color to bg color on change?

For example, I want the text to be the same color as the selected swatch, so that it's invisible to the viewer. I.e. they only see the swatch with no text.

Or maybe there is a way to set the text color to transparent?

wbelk commented 4 years ago

I was able to achieve this by wrapping with a <div><span open hueb.open() on click, give me color></span><input hubee hide me always></div>

Screen Recording 2020-08-27 at 07 28 28 PM

desandro commented 3 years ago

Thanks for following up. You don't have to use Huebee on an input. You can use it on a

then use a the change event to set a hidden to that value