Color picker to work with HSL(A) values also
Opened this issue · 1 comments
mattpass commented
The regex in cssColorPreview
function can pick up hsl/hsla values (both upper & lower case) but it's not converted to hex (as rgb/rgba values are in order to set color in Farbtastic) plus we also don't have this format shown in modal, only hex and rgb(a) - need to add hsl(a) there too.
mattpass commented
Also - value identification issues such as:
rgba (40, 50, 60, 0.5)
<- not picked up as spaces before (
...and inserting a rgb value from modal doesn't work well on rgb format, only inserts (replaces) fine on hex values (re insertColorValue
function and its use of replaceRange
)