- From: Dominik Wilkowski via GitHub <sysbot+gh@w3.org>
- Date: Thu, 12 Sep 2019 23:44:22 +0000
- To: public-design-tokens-log@w3.org
Hi everyone,
I've been following this repo for a while now. Very keen to help and see where it goes.
Some thoughts from my side:
- Even though we may not want to boil the ocean it's good to talk about what the horizon looks like to make sure we don't paint our-self into a corner. Then go back to the small scope and deliver the most basic first step.
- I'd be very keen on a schema driven token system. This may or may not fall into the scope of this group but a schema driven data-structure would give us type-safety, documentation out of the box and make it possible to import only those types we need and not build a monolith. I take inspiration from [GraphQL](https://graphql.org/) here.
- Grouping tokens is something we found very valuable as opposed to _atomic tokens_. Things like _type packs_ that group font styling (font weight, line height, family etc) into semantic groups helps communicate the design intent and build a common language.
Something that would help this would be a self-referencing system where I can declare an atomic token (`lineheight: 1.2` or `rounded-corners: 6px`) and can reuse this in the same file or system:
```
{
color: {
brand: '#000',
action: '#999'
},
space: {
'line-height': [ 1.2, 1.4, 2 ],
},
type: {
'page-headline': {
family: 'SF',
weight: 900,
size: '2.5rem',
line-height: space[ line-height ][ 2 ]
},
'section-headline1': {
family: 'SF',
weight: 700,
size: '2rem',
line-height: space[ line-height ][ 1 ]
},
'section-headline2': {
family: 'SF',
weight: 700,
size: '1.5rem',
line-height: space[ line-height ][ 1 ]
},
'body': {
family: 'SF',
weight: 300,
size: '1rem',
line-height: space[ line-height ][ 0 ]
}
}
}
```
No matter where these things fall, I'm keen to help.
Cheers from Australia
--
GitHub Notification of comment by dominikwilkowski
Please view or discuss this issue at https://github.com/design-tokens/community-group/issues/1#issuecomment-531047281 using your GitHub account
Received on Thursday, 12 September 2019 23:44:24 UTC