[community-group] $deprecated property? (#118)

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

== $deprecated property? ==
When a specific design token should no longer be used the current schema only gives the option to remove it.

This can easily block consumption of future changes until all consumers have caught up with the removal.

This is a communication issue.
Design token files will eventually have breaking content changes.

This can be partly handled by using a distribution method that supports some form of versioning.
That would allow consumers to stay on a version they are compatible with until they are ready to update. This is outside the scope of my request.

Having a `$deprecated` field would allow tools to give warnings and guidance about upcoming changes.

```json
{
  "Button background": {
    "$value": "#777777",
    "$description": "The background color for buttons in their normal state.",
    "$deprecated": "Button styles have been moved to a separate design tokens file. Import 'buttons.tokens'"
  }
}
```

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


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

Received on Sunday, 20 March 2022 08:00:05 UTC