Spacing

Every part of a UI should be intentional including the empty space between elements. The amount of space between items creates relationships and hierarchy.

Two scales

There are two spacing scales; one for general spacing within components and the other for layout spacing. Both are designed to complement the existing components and typography throughout the system. The two scales have certain overlapping values that serve two different roles.

Spacing scale

Use the spacing scale when building individual components. It includes small increments needed to create appropriate spatial relationships for detail-level designs. This scale is applied and used within all Bewond components.

Tokenrempx
spacing-010.1252
spacing-020.254
spacing-030.58
spacing-040.7512
spacing-05116
spacing-061.524
spacing-07232
spacing-082.540
spacing-09348

Layout scale

The layout scale is used for arranging components and other UI parts into a full page layout. It has larger increments that are used to control the density of a design. Use the smaller layout tokens to create more dense compositions and direct relationships. Use the larger tokens to increase the amount of white space and to disassociate sections.

Tokenrempx
layout-01116
layout-021.524
layout-03232
layout-04348
layout-05464
layout-06696
layout-0710160

The Grid is the encouraged way to horizontally space UI elements. The layout scale is most commonly used for vertical spacing, but it can also be applied for horizontal spacing when appropriate, especially in the case of fixed spacing.

There are a few other non-token methods that can be used for spacing elements like center.