Overview

Standardize margin and padding across components and layouts through numerical and visual alignment. And, use these dividers to communicate systemic spacing to developers.


Usage

Spacing sizes


spacing table

Component Spacers


Use spacers in component design to keep consistency between elements. The arrangement and size of spacers is defined within the component or pattern. Component spacers are generally on the smaller side.

Component Spacers

Layout Spacers


Use layout spacers to maintain consistency between components. The arrangement and size of spacers is defined at the pattern level, or up to the designer’s discretion.

Layout Spacers

Creating Relationships


Use spacers to group related items together and have unrelated items separate.

Creating relationships with spacers

Mobile


Spacers drop down one level to accommodate a mobile screen size. This is the default setting and does not apply to all layouts. Specify a different setting as needed.

For Example: Desktop card has an L Spacer between Category Information and Title so, at Mobile, it moved to an M Spacer.

Spacing for Typography


Use line height to create space between lines of text enhancing readability or to draw attention to a specific line of text. For more detailed guidelines, see the TYPOGRAPHY page.

Note: Do not use line height when creating relationships with different typography styles, for example: between H3 and body text.

typography spacing

Do's & Don'ts

Use spacers to enhance readability


For text heavy components such as tables or long forms, add space to make the content clean and clear. For task or alert based components, use less space for improved usability.

do spacers readability Use spacing for lists, tables, and long forms.
dont spacers readability Use large spacers for task or alert components, such as date pickers or alert modals.

Spacers vs. Nested Grids


do spacers nested Use spacers over deeply nested grids to limit complication of the design or code.
dont spacers grid Use spacers for multi-column layouts.