digdir / designsystemet

Designsystemet
https://designsystemet.no
MIT License
80 stars 36 forks source link

Remove `spacing`and `sizing` add new dimension tokens #2526

Open Febakke opened 1 month ago

Febakke commented 1 month ago

Having both spacing and sizing can be confusing. It is all sizes after all. Token Studio has added dimension token that are closer to the Token definition defined by W3C. We should consider moving over to using them instead. Token studio documention

### Tasks
- [ ] Create new size scales using dimensions
- [ ] Should `border-radius` move into dimensions?
- [ ] Figma changes
- [ ] CLI?
mimarz commented 2 weeks ago

This is should be supported in the CLI. I changed it to check on the group name instead of type.

Image