Ready

Layout

Use layout to organize visual elements and to help guide users’ attention through a user experience.

Ready

Layout

Use layout to organize visual elements and to help guide users’ attention through a user experience.

Ready

Layout

Use layout to organize visual elements and to help guide users’ attention through a user experience.

Variants

Variants

Variants

Stacking Methods

Default

Use these classes to arrange elements in vertical or horizontal layouts.

  1. layout-vertical

  2. layout-horizontal

  3. layout-horizontal-wrap

Breakpoint Specific

Use these classes to change the stacking direction for a specific responsive breakpoint.

  1. layout-vertical--md: Forces a layout-horizontal container to stack vertically at the small and medium breakpoints.

  2. layout-vertical--sm: Forces a layout-horizontal container to stack vertically at the small breakpoint.

Width

  1. layout-width--full 100%

  2. layout-width--xl max-width: 1200px

  3. layout-width--lg max-width: 900px

  4. layout-width--md max-width: 600px

  5. layout-width--sm max-width: 300px

Gap

Our layout gap classes use our spacing units to add space between layout items.

  1. layout-gap--1

  2. layout-gap--2

  3. layout-gap--3

  4. layout-gap--4

  5. layout-gap--5

  6. layout-gap--6

  7. layout-gap--7

  8. layout-gap--8

  9. layout-gap--9

  10. layout-gap--10

Alignment

  1. layout-align--top Aligns items to the top of the container.

  2. layout-align--center-y Aligns items in the vertical center of the container.

  3. layout-align--bottom Aligns items to the bottom of the container.

  4. layout-align--left Aligns items to the left side of the container.

  5. layout-align--center-x Aligns items to the horizontal center of the container.

  6. layout-align--right Aligns items to the right side of the container.

  7. layout-align--stretch-y Stretch the items to fill the vertical space of the container.

  8. layout-align--stretch-x Stretch the items to fill the horizontal space of the container.

  9. layout-align--space-between Evenly distribute the items within the container.

Best Practices

Best Practices

Best Practices

1. Structure

Use layout classes to provide a clear structure to a UI design. This will improve the page readability and allow users to easily find what they’re looking for. ¹

2. Gaps

Use the layout-gap classes to create clear separation between different pieces of content on the page. ¹

3. White Space

Use white space to give breathing room around your page elements and to help users focus on what’s most important. ² This can be done using the layout-width classes to give a content container a max-width and add white space around around it.

4. Optimize for screen size

Use the breakpoint specific stacking methods to optimize your layouts for different screen sizes.

More

More

More

Additional Reading

Need more guidance?

Suggest an addition or an edit.

Need more guidance?

Suggest an addition or an edit.

Need more guidance?

Suggest an addition or an edit.

© 2025 Basis Technologies
© 2025 Basis Technologies
© 2025 Basis Technologies