Open Ogeon opened 4 months ago
CSS has a few variants of color spaces that aren't yet supported in Palette. These should be added.
XYZ:
xyz
xyz-d65
Xyz
Xyz<D65>
xyz-d50
Xyz<D50>
RGB:
Srgb::<u8>::from_str
palette::named
rgb()
rgba()
Srgb
Srgba
srgb
Rgb
Rgb<Srgb>
srgb-linear
LinSrgb
display-p3
a98-rgb
prophoto-rgb
rec2020
Other:
hsl()
hsla()
Hsl<Srgb>
Hsla<Srgb>
hwb()
Hwb<Srgb>
lab()
Lab<D50>
lch()
Lch<D50>
oklab()
Oklab
oklch()
Oklch
device-cmyk
https://www.w3.org/TR/css-color-5
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.
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 explicitlyXyz<D65>
xyz-d50
-Xyz<D50>
RGB:
Srgb::<u8>::from_str
palette::named
rgb()
andrgba()
-Srgb
,Srgba
srgb
-Rgb
,Srgb
or explicitlyRgb<Srgb>
srgb-linear
-LinSrgb
display-p3
- Separate issue: #367, implemented in #412a98-rgb
- Implemented in #411prophoto-rgb
- Implemented in #413rec2020
- Implemented in #410Other:
hsl()
andhsla()
-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: #6https://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.