piccalil-li / cube-css-issue-tracker

This is the issue and discussion tracker for CUBE CSS.
https://piccalil.li/cube-css
36 stars 0 forks source link

When are design tokens decided? #4

Open yuheiy opened 4 years ago

yuheiy commented 4 years ago

Thanks for the great documentation! I'm very impressed.

Now, my question is when to set up design tokens.

Andy seems to prefer a utility-first approach, but design tokens must be completed in order to use the utility classes. But when will the design tokens be known? Do you know your design tokens before you design pages? Or are tokens picked up from there after the pages are designed?

Once we start using utility classes, it should be difficult to change the scheme of design tokens later on. So we will need to decide on our design tokens carefully.

I would like to hear your opinion on this.

yuheiy commented 4 years ago

For meaningful layering in CSS, we need a reasonable abstraction each time. If it's difficult to do so, we'll end up with a lot of huge blocks?

I think it's important to know how to derive the proper abstraction in order to get most of the work done before it reaches the block.