Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS color module level 5 color space support #408

Open
17 of 18 tasks
Ogeon opened this issue Aug 1, 2024 · 0 comments
Open
17 of 18 tasks

CSS color module level 5 color space support #408

Ogeon opened this issue Aug 1, 2024 · 0 comments
Labels
color type A new color space, model or meta type

Comments

@Ogeon
Copy link
Owner

Ogeon commented Aug 1, 2024

Description

CSS has a few variants of color spaces that aren't yet supported in Palette. These should be added.

XYZ:

  • xyz, xyz-d65 - Xyz or explicitly Xyz<D65>
  • xyz-d50 - Xyz<D50>

RGB:

Other:

  • hsl() and hsla() - Hsl<Srgb>, Hsla<Srgb>
  • hwb() - Hwb<Srgb>
  • lab() - Lab<D50>
  • lch() - Lch<D50>
  • oklab() - Oklab
  • oklch() - Oklch
  • device-cmyk (naive or value container) - Separate issue: CMYK #6

https://www.w3.org/TR/css-color-5

Motivation

CSS is widely used and providing matching options makes it easier for applications to use Palette as the color management backend when reading and writing CSS color syntax.

@Ogeon Ogeon added the color type A new color space, model or meta type label Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
color type A new color space, model or meta type
Projects
None yet
Development

No branches or pull requests

1 participant