Add inline previews also for oklch()
, etc colors
#32874
Closed
ai
started this conversation in
Ideas From VSCode
Replies: 2 comments 2 replies
-
The Is this for color picker or showing the color swatch block for oklch? Afaik if the underlying lsp supports the oklch colors it will return the rgba for that and zed should be able to render it. Might need to verify but I believe the tailwindcss lsp should work. Also the pr didn’t added support for color picker just color swatch block. sorry in advance if I understood the feature request completely wrong. |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
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