Grid
Use our flexible grid system to structure website content. The grid is mobile-first, powered by flexbox, and based on a 12-column system.
Examples
Grid Layout
Breakpoints
Mobile
320pxMobile Lg
480pxTablet
640pxDesktop
1024px1
2
3
4
5
6
7
8
9
10
11
12
(col-span-1)
(col-span-1)
(col-span-1)
(col-span-1)
(col-span-1)
(col-span-1)
.col-span-4
.col-span-4
.col-span-4
.tablet:col-span-4
.tablet:col-span-4
.tablet:col-span-4
HTML
Grid vs Flex
Breakpoints
Mobile
320pxMobile Lg
480pxTablet
640pxDesktop
1024px1
2
3
4
5
6
7
8
9
10
11
12
grid
(col-span-1)
(col-span-1)
(col-span-1)
flex
.w-1/3
.w-1/3
.w-1/3
flex & gap
.w-1/3
.w-1/3
.w-1/3
flex auto size
(w-auto)
(w-auto)
(w-auto)
.w-1/4
.w-1/4
.w-1/4
.w-1/4
flex fill
(w-auto)
.flex-1
flex fill multiple
.flex-1
.flex-1
.flex-1
HTML
Gutters
Breakpoints
Mobile
320pxMobile Lg
480pxTablet
640pxDesktop
1024px1
2
3
4
5
6
7
8
9
10
11
12
(col-span-1)
(col-span-1)
(col-span-1)
(col-span-1)
(col-span-1)
(col-span-1)
HTML
Column Offset
Breakpoints
Mobile
320pxMobile Lg
480pxTablet
640pxDesktop
1024px1
2
3
4
5
6
7
8
9
10
11
12
(col-span-1)
.col-start-5.col-span-8
HTML
Column Wrapping
Breakpoints
Mobile
320pxMobile Lg
480pxTablet
640pxDesktop
1024px1
2
3
4
5
6
7
8
9
10
11
12
.col-span-8
.col-span-3
.col-span-5
HTML
Responsive
Unlike components, layouts use viewport media queries (.desktop:*) instead of container queries (.@desktop:*). In order to demonstrate this, change the width of the browser window instead of the component example window.
Breakpoints
Mobile
320pxMobile Lg
480pxTablet
640pxDesktop
1024px1
2
3
4
5
6
7
8
9
10
11
12
(col-span-1)
.col-span-2
.col-span-3
.col-span-4
.col-span-2
.tablet:col-span-8
.tablet:col-span-2
.tablet:col-span-2
.tablet:col-span-8
.col-span-6.tablet:col-span-4
.col-span-6.tablet:col-span-4
.col-span-6.tablet:col-span-4
.col-span-6.tablet:col-span-4
.col-span-6
.col-span-6
HTML