[community-group] Closed Pull Request: Adds new token property (`$private`)

TremayneChrist has just closed TremayneChrist's pull request 172 for https://github.com/design-tokens/community-group:

== Adds new token property (`$private`) ==
Adds support for private tokens, to make defining tokens easier, without bloating any token outputs.

A simple use case could be using internal color palettes to create gradients, for example:

```json
{
  "color": {
    "$private": true,
    "red": {
      "$value": "red"
    },
    "orange": {
      "$value": "orange"
    },
    "yellow": {
      "$value": "yellow"
    },
    "green": {
      "$value": "green"
    },
    "blue": {
      "$value": "blue"
    },
    "indigo": {
      "$value": "indigo"
    },
    "violet": {
      "$value": "violet"
    }
  },
  "gradient": {
    "$type": "gradient",
    "rainbow": {
      "$value": [
        {
          "color": "{color.red}",
          "position": "0"
        },
        {
          "color": "{color.orange}",
          "position": "0.166"
        },
        {
          "color": "{color.yellow}",
          "position": "0.333"
        },
        {
          "color": "{color.green}",
          "position": "0.5"
        },
        {
          "color": "{color.blue}",
          "position": "0.666"
        },
        {
          "color": "{color.indigo}",
          "position": "0.833"
        },
        {
          "color": "{color.violet}",
          "position": "1"
        }
      ]
    }
  }
}
```

See https://github.com/design-tokens/community-group/pull/172


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

Received on Thursday, 26 January 2023 16:15:44 UTC