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).
| Breakpoint | Min width | Tailwind | Figma frame | Grid |
|---|---|---|---|---|
| base | 0 | no prefix | Mobile · 390 | 4 columns · gutter 16 · margin 16 |
| sm | 640px | sm: | — | 4 columns · gutter 16 · margin 16 |
| md | 768px | md: | Tablet · 768 | 8 columns · gutter 24 · margin 24 |
| lg | 1024px | lg: | — | 12 columns · gutter 32 · margin 32 |
| xl | 1280px | xl: | Desktop · 1440 | 12 columns · container 1280 max |
| 2xl | 1536px | 2xl: | — | 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.
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.
| Container | Max width | Margins | Use for | Class |
|---|---|---|---|---|
| Centered | 1280px | 16 / 24 / 32px | Sites, docs, forms and reading pages | container |
| Fluid | 100% | 16 / 24 / 32px | Dashboards, tables and apps with a sidebar | container-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.