Re: [community-group] Possible Color Subtypes/Metadata (#191)

I think that this is a good use of grouping, not types. `$type` is intended to be a guide for the parser/translation tool to interpret the token's value.

With grouping, you might do the following:

```json
{
  "color": {
    "base": {
      "red": {
        "200": {
          "$value": "#ffa6a6",
          "$type": "color"
        }
      }
    },
    "semantic": {
      "text": {
        "red": {
          "$value": "{color.base.red.400}"
        }
      }
    }
  }
}
```

Which would provide a token like `color-semantic-lightTheme-text-red`. You can choose whichever names make the most sense to your use case.

-- 
GitHub Notification of comment by ilikescience
Please view or discuss this issue at https://github.com/design-tokens/community-group/issues/191#issuecomment-1335496111 using your GitHub account


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

Received on Friday, 2 December 2022 16:20:20 UTC