Closed ariarzer closed 2 years ago
Thank you for your suggestion. I think it definitely makes sense to reuse existing standards and conventions where possible and not reinvent the wheel. We do already draw some inspiration from CSS (e.g. the px
and rem
units for dimension
tokens).
However, we also need to be mindful that:
cubic-bezier(...)
. If we were to use that directly in our spec, it would need to be something like a string value like this: "value": "cubic-bezier(...)"
. However, we've chosen to use a plain JSON array containing number values. That saves tools needing to parse the string to get those 4 numbers.Does that make sense?
The spec editors have reviewed this issue and, given that there's been no further comments, have decided to close this. We thank you for your suggestion, but will continue using our own value formats for the reasons I explained in the previous comment.
It might be very platform specific, but i guess, that VDS (Value Definition Syntax) form CSS fits very well for description the type of the tokens.
For example, if you want to define a color-token, you can write:
Or, if you want to define a bezier function, you can use a
<cubic-bezier-easing-function>
from css-specification.And that way would work well for the css at-rule
@property
for define a custom properties (and type os custom properties).CSS is created for description of interface appearance, like a design tokens too. I guess, that it will be convenient)
P.S. sorry for my not perfect english)