Skip to content
SevenOne

Search documentation

Search pages and components

Grid & breakpoints

Tailwind's breakpoints, a 4 / 8 / 12 column grid and two containers: centered for sites and reading pages, fluid for dashboards and apps. The same values are in Figma and in sevenone.css.

Breakpoints

The same breakpoints as Tailwind, so design and code change at the same widths. Each one starts at its minimum width and goes up (mobile first).

Breakpoints, Figma frames and grid per size
BreakpointMin widthTailwindFigma frameGrid
base0no prefixMobile · 3904 columns · gutter 16 · margin 16
sm640pxsm:—4 columns · gutter 16 · margin 16
md768pxmd:Tablet · 7688 columns · gutter 24 · margin 24
lg1024pxlg:—12 columns · gutter 32 · margin 32
xl1280pxxl:Desktop · 144012 columns · container 1280 max
2xl1536px2xl:—12 columns · container 1280 max

Grid

4 columns on mobile, 8 from md (768px), 12 from lg (1024px). Gutters and margins come from the spacing scale: 16, 24 and 32px. The grid below follows the width of your window.

Your window now 

Resize the window to see the columns change.

Containers

Both containers have the same side margins (16, 24 and 32px). Below 1280px they look the same; above it, only the centered one stops growing.

Centered1280px at most, margins included (1216px of content on desktop). For sites, docs, forms and reading pages.
FluidThe whole width of the window. For dashboards, tables and apps with a sidebar.
The two containers
ContainerMax widthMarginsUse forClass
Centered1280px16 / 24 / 32pxSites, docs, forms and reading pagescontainer
Fluid100%16 / 24 / 32pxDashboards, tables and apps with a sidebarcontainer-fluid

In code

The classes come with the SevenOne theme, in React and in Angular (both use Tailwind v4). container replaces the steps of Tailwind's own container with the 1280px limit.

<!-- Centered: 1280px at most, margins 16 / 24 / 32 -->
<div class="container">…</div>

<!-- Fluid: the whole width, same margins -->
<div class="container-fluid">…</div>

<!-- Grid: 4 / 8 / 12 columns with the matching gutter -->
<div class="container layout-grid">
  <aside class="col-span-full lg:col-span-3">…</aside>
  <main class="col-span-full lg:col-span-9">…</main>
</div>

Without Tailwind

The variables are plain CSS in sevenone.css. These rules give you the same containers and grid:

.container {
  width: 100%;
  max-width: var(--layout-max-width); /* 1280px */
  margin-inline: auto;
  padding-inline: var(--layout-margin); /* 16 / 24 / 32px */
}

.container-fluid {
  width: 100%;
  padding-inline: var(--layout-margin);
}

.layout-grid {
  display: grid;
  grid-template-columns: repeat(var(--layout-columns), minmax(0, 1fr)); /* 4 / 8 / 12 */
  column-gap: var(--layout-gutter); /* 16 / 24 / 32px */
}

In Figma

The Grid & Breakpoints page has the examples. Apply the grid styles Grid/Mobile · 4 columns, Grid/Tablet · 8 columns and Grid/Desktop · 12 columns (Centered or Fluid) to your frames. The Layout variable collection has one mode per size (Mobile, Tablet, Desktop) with the columns, gutter, margin, container width and breakpoints.

Accessibility

  • Content reflows down to 320px wide (WCAG 1.4.10): at 400% zoom, a 1280px screen uses the mobile grid. No sideways scrolling, except for wide tables and code.
  • Change the number of columns, not the reading order: the order in the code is the order on screen at every size.
  • Margins never go below 16px, so text never touches the edge of the screen.
  • Controls keep 44px (48px in Large) at every breakpoint; touch targets do not shrink on mobile.