- From: Tremayne Christ via GitHub <sysbot+gh@w3.org>
- Date: Mon, 26 Sep 2022 15:10:40 +0000
- To: public-design-tokens-log@w3.org
TremayneChrist has just submitted a new pull request 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 Monday, 26 September 2022 15:10:42 UTC