Replies: 1 comment
-
@V1OL3TF0X Sounds good to me. Feel free to give it a shot |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
🚀 Feature request
Add
oklch
as a colour space forcolor-picker
🧱 Problem Statement / Justification
There is a - quite sensible - movement to oklch for defining colors - it has a wider range and more natural (to human eye) axes. It also defines colours in a format that is much easier to read and understand. I've yet to see a color picker that enables one to define colours in that space, and I
✅ Proposed solution or API
Adding another
Color
implementation to@zagjs/color-utilities
, which would enable parsing to/ fromoklch
. From a small look at the repo I think it would suffice, although I'm not familiar, so guidance here would be appreciated.📝 Additional Information
https://evilmartians.com/chronicles/oklch-in-css-why-quit-rgb-hsl
https://bottosson.github.io/posts/oklab/
Also, a look at different interpolation modes in gradients shows that the oklch interpolation is more vivid and "natural" (in my opinion) than the alternatives
I would gladly take care of the PR, just lmk if that's something you see as worth adding
Beta Was this translation helpful? Give feedback.
All reactions