- From: Kaelig Deloumeau-Prigent via GitHub <sysbot+gh@w3.org>
- Date: Thu, 16 May 2024 21:00:13 +0000
- To: public-design-tokens-log@w3.org
@romainmenke's proposal is the closest to what we want, and here's what we have right now:
```json
{
"my-token": {
"$type": "color",
"$value": {
"hex": "#xxxxxx",
"colorSpace": "dci-p3",
"channels": [0.1, 0.2, 0.3],
"alpha": 0.6
}
}
}
```
We could borrow the pre-defined CSS spec spaces for absolute `color(<color-space> ...)` values with rectangular spaces, as in: `srgb | srgb-linear | display-p3 | a98-rgb | prophoto-rgb | rec2020 | lab | oklab | xyz | xyz-d50 | xyz-d65`.
That said, community feedback shows people want to write and use polar color spaces: `hsl | hwb | lch | oklch`.
My question to color experts here is: can we support both polar and rectangular color spaces with the spec showed above?
--
GitHub Notification of comment by kaelig
Please view or discuss this issue at https://github.com/design-tokens/community-group/issues/137#issuecomment-2116168184 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 16 May 2024 21:00:14 UTC