amzn / style-dictionary

A build system for creating cross-platform styles.
https://styledictionary.com
Apache License 2.0
3.93k stars 557 forks source link

Cti reliance #1123

Closed jorenbroekema closed 8 months ago

jorenbroekema commented 8 months ago

Remove reliance on CTI token structure across transforms, actions and formats.

Breaking changes:

Before:

{
  "color": {
    "red": {
      "value": "#FF0000"
    }
  }
}

After:

{
  "color": { // <-- this no longer needs to be "color" in order for the tokens inside this group to be considered of type "color"
    "red": {
      "value": "#FF0000",
      "type": "color"
    }
  }
}

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.