bgrins / TinyColor

Fast, small color manipulation and conversion for JavaScript
https://bgrins.github.io/TinyColor/
MIT License
5.1k stars 439 forks source link

[Question] OKLCH support? #273

Open ZombiEquinox opened 1 year ago

ZombiEquinox commented 1 year ago

I use TinyColor2 in one of my applications to help with color conversion for custom themes. I also use DaisyUI for my component library. Daisy recently switched all their colors to OKLCH for theme colors, which is currently not supported in tinycolor2. Do you have any plans to support OKLCH? I basically need to ability to switch Hex or RGB to OKLCH. I have looked into other libraries color color conversion but they aren't as good as tinycolor2.

Down10 commented 1 month ago

I would go so far as to suggest full (or as much as possible) support of the CSS Color Module Level 4 W3C specification, which includes OKLCH, CIELAB, and other color spaces.