Standardize margin and padding across components and layouts through numerical and visual alignment. And, use these dividers to communicate systemic spacing to developers.
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.
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.
Use spacers to group related items together and have unrelated items separate.
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.
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.
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.