Padding

The Padding foundation defines the (inner) padding within components or elements.

Responsive Padding

These tokens can be applied to paddings 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-padding-none
Collection
Size
2px
2px
4px
4px
aero-padding-3xs
Collection
Size
4px
4px
8px
8px
aero-padding-2xs
Collection
Size
8px
8px
12px
12px
aero-padding-xs
Collection
Size
12px
12px
16px
16px
aero-padding-sm
Collection
Size
16px
16px
24px
24px
aero-padding-md
Collection
Size
24px
24px
32px
32px
aero-padding-lg
Collection
Size
32px
32px
40px
40px
aero-padding-xl
Collection
Size
48px
48px
64px
64px
aero-padding-2xl
Collection
Size
64px
64px
80px
80px
aero-padding-3xl
Collection
Size

 

Fixed Padding

The Fixed Padding 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 paddings that need to stay the same throughout the change of viewports.

2px
2px
2px
2px
aero-padding-fix-3xs
Collection
Size
4px
4px
4px
4px
aero-padding-fix-2xs
Collection
Size
8px
8px
8px
8px
aero-padding-fix-xs
Collection
Size
12px
12px
12px
12px
aero-padding-fix-sm
Collection
Size
16px
16px
16px
16px
aero-padding-fix-md
Collection
Size
24px
24px
24px
24px
aero-padding-fix-lg
Collection
Size
32px
32px
32px
32px
aero-padding-fix-xl
Collection
Size
48px
48px
48px
48px
aero-padding-fix-2xl
Collection
Size
64px
64px
64px
64px
aero-padding-fix-3xl
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