Tonic UI
Getting StartedColor ModeColor StyleVersionsContributing
THEME
BordersBreakpointsColorsOutlinesPositionsSpacingSizesShadowsTypography
BUILDING BLOCKS
BoxControlBox
UTILITIES

Spacing

The space key allows you to customize the global spacing and sizing scale for your project. By default, these spacing values can be referenced by the padding, margin, top, left, right, and bottom styles.

By default, the values are proportional. Therefore, a 1x spacing unit is equal to 0.25rem, which translates to 4px by default in common browsers.

NameRelative Length Unit (rem)Absolute Length Unit (px)Example
000px
1x.25rem4px
2x.5rem8px
3x.75rem12px
4x1rem16px
5x1.25rem20px
6x1.5rem24px
7x1.75rem28px
8x2rem32px
9x2.25rem36px
10x2.5rem40px
11x2.75rem44px
12x3rem48px
13x3.25rem52px
14x3.5rem56px
15x3.75rem60px
16x4rem64px
17x4.25rem68px
18x4.5rem72px
19x4.75rem76px
20x5rem80px
24x6rem96px
32x8rem128px
40x10rem160px
48x12rem192px
56x14rem224px
64x16rem256px
EDITABLE EXAMPLE