Renaming the SwissPost Design-System sizing variables #588
Replies: 3 comments 2 replies
-
My 2 cents
* New groups could be introduced as intermediary sizes, but sizes in groups cannot be extended without changing the mapping to pixels ** The base progression is steps of 8, but the spec contains fractions of 8 as intermediary steps as well |
Beta Was this translation helpful? Give feedback.
-
Great work, thanks @oliverschuerch 👏 Grouped: Iterating: Pixel: Clothing: All in all out of a designing view, I think pixel is the best proposal! And thanks again for your effort 🙏 |
Beta Was this translation helpful? Give feedback.
-
Alea iacta est... I created a development task out of this: #684 |
Beta Was this translation helpful? Give feedback.
-
This discussion should serve as a descision base to refactor the sizing variables delivered with the swisspost-design-system.
Actual state
The actual state of the sizing variables is confusing and a mess. There is no obvious logic which variable is giving you the prefferd pixel-value. Take a look for yourself: Sizing Docs.
Possibilities for a better user experience
After some research we elaborated some possible ways to improve the variables by renaming them with some logic.
This should allow developers to choose the correct variable without having to consult the documentation every time.
Grouped sizes
This solution relies on subgroups. Note, that the group names and the partisions are only a proposal.
Iterating sizes
This solution relies on numbers. We just iterate all sizes (starting by 1) and assign every size a consecutive number.
Pixel sizes
This solution relies on the exact Pixel sizes. Every size name includes the exact pixel size of itself.
Clothing sizes
4 votes ·
Beta Was this translation helpful? Give feedback.
All reactions