Add inline previews also for oklch()
, etc colors
#32875
Closed
ai
started this conversation in
Ideas From VSCode
Replies: 1 comment
-
Sorry, GitHub UI issue |
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.
-
Recently @SomeoneToIgnore added inline color support for
rgba()
colors in CSS (thanks!).It is popular but doesn’t cover all CSS.
With a little of work we can add other functions support like:
oklch()
,oklab()
hsl()
lch()
,lab()
color(display-p3)
Why we should support for instance
oklch()
:Most of these color functions is just a matrix multiplication (for instance, math for OKLCH).
There is a question what to do for P3 and other over-sRGB colors. I think for this issue we can support only sRGB (if we don’t have HDR support in Zed video subsystem).
Beta Was this translation helpful? Give feedback.
All reactions