Grid
Usage
Base-8 Grid
The base-8 fluid grid is — as the name suggests — based on spaces that are multiples of 8px horizontally and vertically. It is fully fluid (up to specified maximums) to provide the optimal presentation of the content at any width.
It is content-driven, device-agnostic, and fully fluid, which allows designers to optimize the content layout at key breakpoints.
Key Features
- Six responsive breakpoints (XS, S, M, L, XL, XXL)
- Twelve fluid columns for M, L, XL, XXL
- Four fluid columns for S
- Two fluid columns for XS
- Fixed margins and gutters across all breakpoints
Responsive Breakpoints
Size | Viewport | Columns | Gutters | Margins |
---|---|---|---|---|
XS | 0-479px | 2 | 8px | 8px |
S | 480-679px | 4 | 8px | 8px |
M | 680-959px | 12 | 16px | 16px |
L | 960-1167px | 12 | 16px | 16px |
XL | 1168-1359px | 12 | 16px | 16px |
XXL | 1360px-1456px | 12 | 16px | 16px |
Designing with Base-8
Designers can use the grid to provide the optimal presentation of their content — whether data tables, paragraph copy, galleries, or media. Thus, they may not always need to design every breakpoint.
The recommended design widths below use column widths that are divisible by eight.
Recommended Design widths
Size | Viewport | Recommended Design Widths |
---|---|---|
XS | 0-479px | 392px |
S | 480-679px | 584px |
M | 680-959px | 784px |
L | 960-1167px | 976px |
XL | 1168-1359px | 1168px |
XXL | 1360px-1456px | 1360px |
Max widths
The max width of applications such as Simulcast and MMR should be determined by the needs of the content.
Size | Viewport | Content Type |
---|---|---|
XS | 0-479px | All content types |
S | 480-679px | All content types |
M | 680-959px | All content types |
L | 960-1167px | Max for Content pages† |
XL | 1168-1359px | Max for Listing pages |
XXL | 1360px-1456px | Max for Landing pages |
Code
Grid Containers, Rows, & Columns
Grid Breakpoints
Nested Layouts
Props
The props below are optional. When omitted, the result will be a 100% width column.
Name | Type | Default | Description |
---|---|---|---|
xs | number | sets the width percentage for the xs breakpoint (0-479px) | |
sm | number | sets the width percentage for the sm breakpoint (480-679px) | |
md | number | sets the width percentage for the md breakpoint (680-959px) | |
lg | number | sets the width percentage for the lg breakpoint (960-1167px) | |
xl | number | sets the width percentage for the xl breakpoint (1168-1359px) | |
xxl | number | sets the width percentage for the xxl breakpoint (1360px-1456px) |