Skip to content

Conversation

@thecrypticace
Copy link
Contributor

@thecrypticace thecrypticace commented Mar 26, 2024

Now we can display color decorators for colors using lab, lch, oklab, and oklch.

Given that these are wide-gamut color spaces the behaviors here are a bit different:

  • Color decorators display the closest sRGB approximation of the color
  • Color equivalent hex values only appear when the color is displayable within the sRGB color space
  • Color presentations / pickers are not supported. VSCode (and the language server protocol in general) does not yet support wide-gamut colors so allowing modifications and interactions in this way would be lossy.

Fixes #887

@thecrypticace thecrypticace merged commit 745c3ab into master Mar 27, 2024
@thecrypticace thecrypticace deleted the feat/oklch branch March 27, 2024 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Color previewer]: No support for oklch (DaisyUI v4)

3 participants