- From: Kevin Powell via GitHub <sysbot+gh@w3.org>
- Date: Thu, 09 Sep 2021 18:09:42 +0000
- To: public-design-tokens-log@w3.org
kevinmpowell has just created a new issue for https://github.com/design-tokens/community-group:
== [Format] Token value - string, number, array, object? ==
JSON supports string, number, array and object as data types. Which of these do we want to support for token _values_.
String:
```
{
colorTextPrimary: {
value: '#000000'
}
}
```
Number:
```
{
durationDefault: {
value: 10
}
}
```
Array:
```
{
breakpoints: {
value: ['320', '640', 1080]
}
}
```
Object:
```
{
textHeadingLevel1: {
value: {
fontSize: 32
fontWeight: 700
lineHeight: 1.5
}
}
}
```
I suspect we'll need to support all four data types.
Please view or discuss this issue at https://github.com/design-tokens/community-group/issues/58 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 9 September 2021 18:09:43 UTC