Clarity on spaceX
measurement design decision
#1541
-
In general, I understand the benefit of having a common way of communicating "spacing" (e.g. maring, padding, width, etc.). However, in general, I find the For instance, Paste mentions that their standard unit of measurement is 1 rem unit = 16 pixels, which is something I'm already familiar with from past work in design and development. When trying to match a mock from a designer, I can easily translate With the existing
With all of this in mind, I was hoping to get insight as to whether or not there is a way I can approach this so it is more intuitive when using Paste (e.g. original insight into the decision making, some sort of conversion formula, etc.). If there isn't a simple answer, maybe this can serve to start a discussion about whether or not other developers/designers have the same confusion that I'm experiencing. Also worth noting is that I did try to dive into the TS types to figure out exactly what Thanks for all of the hard work and discussion! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi @HartiganHM. We're working on answer for this one, and will post soon. |
Beta Was this translation helpful? Give feedback.
-
Hi @HartiganHM Really great question. One thing we're going to be working on is a "foundations" documentation section where we go into more detail on decisions we've made about spacing, style, color, etc. So stay tuned for that. Also instead of digging into the TS files to look for token values, you can also reference the tokens page on the docs site to find specific Ok now on to an actual explanation. In order to understand the spacing token values more, it's best to think of them as a scale. In Paste we use a 4px scale, with the exceptions of a 2px spacing token. Here's a small sample preview:
So if we consider your example of We decided on the numbered naming system instead of a t-shirt naming system (small, medium, etc) because the numbers make it easier for consumers to guess the next larger or smaller option. It also helps us if we ever need an in between value, or if we ever need larger values. Let us know if the explanation helps, or if you have any suggestions on how make this information more approachable. |
Beta Was this translation helpful? Give feedback.
Hi @HartiganHM
Really great question. One thing we're going to be working on is a "foundations" documentation section where we go into more detail on decisions we've made about spacing, style, color, etc. So stay tuned for that.
Also instead of digging into the TS files to look for token values, you can also reference the tokens page on the docs site to find specific
rem
andpx
values: https://paste.twilio.design/tokens/#spacingsOk now on to an actual explanation. In order to understand the spacing token values more, it's best to think of them as a scale. In Paste we use a 4px scale, with the exceptions of a 2px spacing token. Here's a small sample preview: