arielsalminen / vue-design-system

An open source tool for building UI Design Systems with Vue.js
https://vueds.com
MIT License
2.17k stars 224 forks source link

Spacing utilities and documentation #33

Closed arielsalminen closed 6 years ago

arielsalminen commented 6 years ago

Vue Design System is missing proper utilities/framework for spacing components and layout. I’m proposing the addition of the following helpers which would be either based on the x-height of the chosen typeface or then just the base space token (if based on x-height, will have to change the spacing tokens to match as well).

Utilities:

Advantages:

Prototype

Resources:

Most of the ideas are from the following articles:

arielsalminen commented 6 years ago

See my updated description above. I’m now working on this feature in https://github.com/viljamis/vue-design-system/pull/36

sapegin commented 6 years ago

This looks very close to my react-spaceman which was inspired by your first link ;-)

arielsalminen commented 6 years ago

This is now merged and I’m in the process of making a new release and updating docs.