Skip to content

Spacing

Spacing is a critical part of visual design. Using Soul as a guideline for your spacing will help you to overcome assumptions and ensure you deliver clear, functional layouts.

The spacing scale is a guideline for all Soul components, demonstrating the incremental additions and substractions you need to create appropriate spatial relationships at the detail-level.

Name Token Value
Space 1 --space-1 3px
Space 2 --space-2 6px
Space 3 --space-3 9px
Space 4 --space-4 12px
Space 5 --space-5 18px
Space 6 --space-6 24px
Space 7 --space-7 30px
Space 8 --space-8 36px
Space 9 --space-9 48px
Space 10 --space-10 60px
Space 11 --space-11 72px
Space 12 --space-12 96px
Space 13 --space-13 120px

Below is a guideline for how to manage padding and margins between and inside elements or components. Use these recommendations to create custom and more complex parts of the UI. In other cases, everything should be prepared and available in the design system.

  • Standard space between logically associated elements. e.g., Multiple buttons, a checkbox and a label, a tooltip and a button/icon, an icon and text, etc.
  • Standard space between logically associated and unassociated elements. e.g., Inside of a tooltip, horizontal spacing between associated and unassociated buttons, etc.
  • Standard space between logically primarily unassociated but also secondarily associated elements. e.g. form elements like inputs and selects.

  • Default app content padding for resolution 1559px and lower

  • Standard space between empty state and text

  • Default app content padding for resolution 1560px and higher

  • Standard space below the empty state in panels or full-page elements

  • Bottom padding for content where there is a Go to up button

Below are a few recommendations for spacing elements or components. Use these to create custom and more complex parts of the UI. Everything should be prepared and available in the design system.

  • Smaller size for interactive elements if you need to save space. Eg. Community
  • The default size of buttons, inputs, and other interactive elements
  • The bigger size of interaction elements if you need to increase the attention of this element. Eg. the Request button on the teasing page.
  • The standard height of bars. E.g. App header, the bar for bulk changes, etc.