web-padawan / vanilla-colorful

A tiny color picker custom element for modern web apps (2.7 KB) 🎨
https://web-padawan.github.io/vanilla-colorful/
MIT License
784 stars 29 forks source link

HEX picker with alpha #69

Closed tobyzerner closed 1 year ago

tobyzerner commented 2 years ago

Thanks for your great work on this library!

Is it possible to have a HEX picker including the alpha channel, resulting in 4-byte outputs like #aabbccff? I don't see it as an option in the "Available pickers" table.

web-padawan commented 2 years ago

Hi, this isn't currently supported. Check out https://github.com/omgovich/react-colorful/issues/161 as I'm using react-colorful as a reference.

timothyallan commented 2 years ago

It's supported now, we've been using it for a while on react projects. https://github.com/omgovich/react-colorful/blob/a85e5b36b55cae7e95c73c8ecde0bc881e8e3b1f/src/components/HexColorInput.tsx#L10

web-padawan commented 1 year ago

Fixed by #81.