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.

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

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.

Tokens

Name

Value

Name

Value

Name

Value

layout-gap--10

core--10

layout-gap--10

core--10

layout-gap--10

core--10

layout-gap--9

core--9

layout-gap--9

core--9

layout-gap--9

core--9

layout-gap--8

core--8

layout-gap--8

core--8

layout-gap--8

core--8

layout-gap--7

core--7

layout-gap--7

core--7

layout-gap--7

core--7

layout-gap--6

core--6

layout-gap--6

core--6

layout-gap--6

core--6

layout-gap--5

core--5

layout-gap--5

core--5

layout-gap--5

core--5

layout-gap--4

core--4

layout-gap--4

core--4

layout-gap--4

core--4

layout-gap--3

core--3

layout-gap--3

core--3

layout-gap--3

core--3

layout-gap--2

core--2

layout-gap--2

core--2

layout-gap--2

core--2

layout-gap--1

core--1

layout-gap--1

core--1

layout-gap--1

core--1

layout-width--sm

Expands to fill available page width a 300px max width

layout-width--sm

Expands to fill available page width a 300px max width

layout-width--sm

Expands to fill available page width a 300px max width

layout-width--md

Expands to fill available page width with a 600px max width

layout-width--md

Expands to fill available page width with a 600px max width

layout-width--md

Expands to fill available page width with a 600px max width

layout-width--lg

Expands to fill available page width with a 900px max width

layout-width--lg

Expands to fill available page width with a 900px max width

layout-width--lg

Expands to fill available page width with a 900px max width

layout-width--xl

Expands to fill available page width with a 1200px max width

layout-width--xl

Expands to fill available page width with a 1200px max width

layout-width--xl

Expands to fill available page width with a 1200px max width

layout-width--full

Expands to fill available page width

layout-width--full

Expands to fill available page width

layout-width--full

Expands to fill available page width

layout-horizontal--xl

Forces a layout-vertical container to stack horizontally at the XL breakpoint

layout-horizontal--xl

Forces a layout-vertical container to stack horizontally at the XL breakpoint

layout-horizontal--xl

Forces a layout-vertical container to stack horizontally at the XL breakpoint

layout-vertical--sm

Forces a layout-horizontal container to stack vertically at the small breakpoint

layout-vertical--sm

Forces a layout-horizontal container to stack vertically at the small breakpoint

layout-vertical--sm

Forces a layout-horizontal container to stack vertically at the small breakpoint

layout-vertical--md

Forces a layout-horizontal container to stack vertically at the small and medium breakpoints

layout-vertical--md

Forces a layout-horizontal container to stack vertically at the small and medium breakpoints

layout-vertical--md

Forces a layout-horizontal container to stack vertically at the small and medium breakpoints

layout-horizontal-wrap

Stack items horizontally. Item overflow wraps

layout-horizontal-wrap

Stack items horizontally. Item overflow wraps

layout-horizontal-wrap

Stack items horizontally. Item overflow wraps

layout-horizontal

Stack items horizontally

layout-horizontal

Stack items horizontally

layout-horizontal

Stack items horizontally

layout-vertical

Stack items vertically

layout-vertical

Stack items vertically

layout-vertical

Stack items vertically

More

Additional Reading

© 2024 Basis Technologies
© 2024 Basis Technologies
© 2024 Basis Technologies