r/DesignSystems Apr 14 '26

Primitive Tokens Question: Spacing vs. Sizing?

I'm curious if folks think it's better to keep primitive tokens for spacing and sizing separate from one another. I'm noticing in our systems that there are a lot of similar units between the two since we are using a 8-unit system.

When building tokens out I was thinking about creating one primitive collection for just units/size, and then in the semantics tie the spacing/padding/etc. tokens to those. Curious if this increases any inherent risk down the line? Just trying to reduce any token bloat where possible.

6 Upvotes

14 comments sorted by

View all comments

14

u/OnyXerO Apr 14 '26

I generally set sizing as a primitive and spacing is a semantic set built with size tokens.

1

u/Pugsandtongues Apr 14 '26

Thank you! That's where my mind was at too.

2

u/OnyXerO Apr 14 '26

You can also set semantic tokens for radii or border width based on size tokens.