- From: Marc Edwards via GitHub <sysbot+gh@w3.org>
- Date: Thu, 16 May 2024 22:28:20 +0000
- To: public-design-tokens-log@w3.org
> My question to color experts here is: can we support both polar and rectangular color spaces with the spec showed above? “Colour space” typically describes which colours are possible, and how they’re mapped within the available gamut. It’s usually referred to as color model or color mode when talking about how the actual values describe the colour (within the colour space). With that in mind, RGB, HSB, HSL etc are all color models or color modes. It’d be good to not conflate the two concepts in the spec. With that in mind, this could be good? By default, sRGB should be assumed as the color space, and RGB should be assumed as the color mode. ``` { "my-token": { "$type": "color", "$value": { "channels": [0.1, 0.2, 0.3], "alpha": 0.6 } } } ``` But, a color space and color mode can be provided. ``` { "my-token": { "$type": "color", "$value": { "colorSpace": "display-p3", "colorMode": "hsl", "channels": [0.1, 0.2, 0.3], "alpha": 0.6 } } } ``` -- GitHub Notification of comment by marcedwards Please view or discuss this issue at https://github.com/design-tokens/community-group/issues/137#issuecomment-2116307036 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 22:28:20 UTC