[community-group] Value Definition Syntax for a tokens type (#78)

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

== Value Definition Syntax for a tokens type ==
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:
```json
  "Majestic magenta": {
    "value": "#ff00ff",
    "type": "<color>"
  },
```

Or, if you want to define a bezier function, you can use a [`<cubic-bezier-easing-function>`](https://drafts.csswg.org/css-easing-1/#cubic-bzier-easing-function) from css-specification.

And that way would work well for the css at-rule [`@property`](https://drafts.css-houdini.org/css-properties-values-api/#at-property-rule) for define a custom properties (and type os custom properties).

CSS if specified for description of interface appearance, like a design tokens too. I guess, that if will be convenient)

P.S. sorry for my not perfect english)



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


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

Received on Friday, 24 September 2021 11:41:19 UTC