page header

Spacing

Our spacing model is grounded in both math and visual psychology. We achieve rhythm and hierarchy by grouping related elements, and building an appropriate distance between elements that are less closely related. Focus on optimizing screen real estate and prioritizing white space.

Spacing concepts

Box model

All HTML elements can be considered boxes. Based off of the HTML foundational box model.

Margin

See WC Style Sheets supportLink to external site.This indicates a link to an external site that may not follow the same accessibility or privacy policies as Alaska Airlines. By selecting a partner link you agree to share your data with these sites.

Vertical - The vertical space between items

Horizontal - The horizontal space between items

SpacingSize measurementToken Variable
0nonevar(--auro-size-none)
2pxxxxsvar(--auro-size-xxxs)
4pxxxsvar(--auro-size-xxs)
8pxxsvar(--auro-size-xs)
12pxsmvar(--auro-size-sm)
16pxmdvar(--auro-size-md)
24pxlgvar(--auro-size-lg)
32pxxlvar(--auro-size-xl)
48pxxxlvar(--auro-size-xxl)
64pxxxxlvar(--auro-size-xxxl)

Inset padding

See WC Style Sheets supportLink to external site.This indicates a link to an external site that may not follow the same accessibility or privacy policies as Alaska Airlines. By selecting a partner link you agree to share your data with these sites.

Default – The padding around an element where all sides are equal

Spacing (t/b l/r)Selector
2px / 2px.util_insetXxxs
4px / 4px.util_insetXxs
8px / 8px.util_insetXs
12px / 12px.util_insetSm
16px / 16px.util_insetMd
24px / 24px.util_insetLg
32px / 32px.util_insetXl
48px / 48px.util_insetXxl
64px / 64px.util_insetXxxl

Stretch – Increased padding above and below an element; the top and bottom are 50% more than the left and right sides

Spacing (t/b l/r)Selector
4px / 2px.util_insetXxxs--stretch
6px / 4px.util_insetXxs--stretch
12px / 8px.util_insetXs--stretch
18px / 12px.util_insetSm--stretch
24px / 16px.util_insetMd--stretch
36px / 24px.util_insetLg--stretch
48px / 32px.util_insetXl--stretch
72px / 48px.util_insetXxl--stretch

Squish – Increased padding to left and right of an element; the left and right sides are 50% more than the top and bottom sides.

Spacing (t/b l/r)Selector
0px / 2px.util_insetXxxs--squish
2px / 4px.util_insetXxs--squish
4px / 8px.util_insetXs--squish
6px / 12px.util_insetSm--squish
8px / 16px.util_insetMd--squish
12px / 24px.util_insetLg--squish
16px / 32px.util_insetXl--squish
24px / 48px.util_insetXxl--squish
32px / 64px.util_insetXxxl--squish