Space

The Space foundation defines the spacing between elements like gaps, margins and spacing. With that we create clarity, rhythm and hierarchy in layouts.

Responsive Space

These Space tokens can be applied to gaps, margins and spacing between elements and components that are allowed to change between our different Size Themes: Small (left) and Large (right). Apply the token once and it automatically adjusts depending on your context.

0px
0px
0px
0px
aero-space-none
Collection
Size
2px
2px
4px
4px
aero-space-3xs
Collection
Size
4px
4px
8px
8px
aero-space-2xs
Collection
Size
8px
8px
12px
12px
aero-space-xs
Collection
Size
12px
12px
16px
16px
aero-space-sm
Collection
Size
16px
16px
24px
24px
aero-space-md
Collection
Size
24px
24px
32px
32px
aero-space-lg
Collection
Size
32px
32px
40px
40px
aero-space-xl
Collection
Size
48px
48px
64px
64px
aero-space-2xl
Collection
Size
64px
64px
80px
80px
aero-space-3xl
Collection
Size

 

Fixed Space

The Fixed Space tokens remain the same size no matter the Theme (it does not change responsively to different viewports or sizes). This can come in handy for gaps, margins and spacing that need to stay the same throughout the change of viewports. For example the space between an icon and label in the Button.

2px
2px
2px
2px
aero-space-fix-3xs
Collection
Size
4px
4px
4px
4px
aero-space-fix-2xs
Collection
Size
8px
8px
8px
8px
aero-space-fix-xs
Collection
Size
12px
12px
12px
12px
aero-space-fix-sm
Collection
Size
16px
16px
16px
16px
aero-space-fix-md
Collection
Size
24px
24px
24px
24px
aero-space-fix-lg
Collection
Size
32px
32px
32px
32px
aero-space-fix-xl
Collection
Size
48px
48px
48px
48px
aero-space-fix-2xl
Collection
Size
64px
64px
64px
64px
aero-space-fix-3xl
Collection
Size

 

Negative Space

There are times when it’s needed that certain elements overlap others based on our art direction. Like we do with content layered on top of the image in the Hero component.

-8px
-8px
-16px
-16px
aero-space-neg-sm
Collection
Size
-16px
-16px
-32px
-32px
aero-space-neg-md
Collection
Size
-32px
-32px
-64px
-64px
aero-space-neg-lg
Collection
Size

 

Space vs. Padding

Use Space tokens for margins, gaps and spacing so mostly for space between components and elements. And Padding tokens for (inner) padding within components and elements.

1. Padding token - 2. Space token

1. Padding token - 2. Space token