Container

Four widths

data-size sets the widest the container grows. The preview is only as wide as this page, so the larger ones fill it; on a wide screen they stop at their own width and centre.

sm: 36rem
md: 48rem
default: 64rem
xl: 80rem

A page

Put the page content in one container: a page header and cards on a form page, a dashboard in xl. On a small screen it has a gutter at the sides.

The form goes here.

With a Workspace

Inside a .workspace the main already has padding, so a container directly in it adds none and only limits the width and centres.

Attributes

AttributeValuesDescription
.container on any element Full width up to 64rem, centred, with a gutter of 16px at the sides.
data-size sm 36rem, md 48rem, xl 80rem (none = 64rem) The widest the container grows. sm suits a sign-in or a short form, xl a dashboard or a wide table.