[community-group] Loosen up the color type (#79)

sbaechler has just created a new issue for https://github.com/design-tokens/community-group:

== Loosen up the color type ==
The `color` type is currently very specific, allowing only 8-bit per channel RGB(A) values.

I see two problems with this approach:

1. Perfectly understandable and valid color definitions like `hsla(300, 100%, 50%, 0.5)` are not allowed.  
2. It is not future proof. We might eventually go past the sRGB color space when HDR displays become the new normal. In the future there could be color definitions with 16 bits per channel. Those could definitely make sense for gradients or in combination with filter effects.

Allowing all values that CSS understands would make it easier to build the file by hand but it would be more work for the design tools since they need a parser for the color values.

[HDR for the web is already being considered](https://w3c.github.io/ColorWeb-CG/#open-issues) and a limit to 8 bits per channel might be a problem in the future.

Please view or discuss this issue at https://github.com/design-tokens/community-group/issues/79 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Saturday, 25 September 2021 15:00:48 UTC