Re: [community-group] [RFC] Format specification (#1)

Hey, I am currently working on a tool to use design tokens in design. 

I need to work with text-styles, meaning  a _collection_ of multiple values that make up a unique text style, e.g. `body`.

Since the specs do not include collections, how would I best go about it? Would I just use tokens with an object as a value?

Is this how such a token should be best defined?

```js
{
      name: 'font/body',
      value: {
        fontSize: 16,
        textDecoration: 'line-through',
        fontFamily: 'Roboto',
        fontWeight: 500,
        fontStyle: 'italic',
        fontStretch: 'normal',
        letterSpacing: 0,
        lineHeight: 'normal',
        paragraphIndent: 0,
        paragraphSpacing: 0,
        textCase: 'none',
      },
      description: 'use for danger stuff',
      data: {
        type: 'fontStylte'
      }
}
```

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


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

Received on Tuesday, 6 April 2021 19:44:40 UTC