Spacing
Mocha's spacing scale, rendered by Mocha. Padding, margins and gaps use
its names, like p-sm or gap-lg, never numbers. Space things out
with Stack and Inline.
Scale
Preview
scale.tsx
Steps
The --space-* tokens in Mocha's theme, which the names map to.
| Step | Value |
|---|---|
3xs | 0.125rem |
2xs | 0.25rem |
xs | 0.375rem |
sm | 0.5rem |
md | 0.75rem |
lg | 1rem |
xl | 1.5rem |
2xl | 2rem |
3xl | 3rem |
4xl | 4rem |