Spacing
Loading
Spacing is used for margins, paddings, borders and various types of positioning. Spacing is essential to create appropriate relationships between elements.
Content and elements that have more spacing applied are often perceived to be higher in importance than content and elements that have less space around them. As content has less importance the spacing applied around these content regions is reduced.
The spacing values align to a modular scale andgrow at an exponential rate.
| Reference | Size | Rem | Pixels |
|---|---|---|---|
| --s8 | 7 | 112 | |
| --s7 | 5 | 80 | |
| --s6 | 4 | 64 | |
| --s5 | 3 | 48 | |
| --s4 | 2.5 | 40 | |
| --s3 | 2 | 32 | |
| --s2 | 1.5 | 24 | |
| --s1 | 1.25 | 20 | |
| --s0 | 1 | 16 | |
| --s-1 | .75 | 12 | |
| --s-2 | .5 | 8 | |
| --s-3 | .375 | 6 | |
| --s-4 | .25 | 4 | |
| --s-5 | .125 | 2 | |
| --s-6 | .0625 | 1 |
| Token | Value | Applied |
|---|---|---|
| --s8 | 7rem - 112px | |
| --s7 | 5rem - 80px | |
| --s6 | 4rem - 64px | |
| --s5 | 3rem - 48px | |
| --s4 | 2.5rem - 40px |
|
| --s3 | 2rem - 32px | rules in here |
| --s2 | 1.5rem - 24px |
|
| --s1 | 1.25rem - 20px |
|
| --s0 | 1rem - 16px |
|
| --s-1 | .75rem - 12px |
|
| --s-2 | .5rem - 8px |
|
| --s-3 | .375rem - 6px | |
| --s-4 | .25rem - 4px | |
| --s-5 | .125rem - 2px |
|
| --s-6 | .0625rem - 1px |
|