The grid allows content to flexibly adapt by percentages. The number of columns is defined by breakpoints which are based on desktop, tablet and mobile widths.
Grid is a Layout style.
| Screen Type | Breakpoint | Columns | Gutter |
|---|---|---|---|
| X Small (XS) | 0 - 350px | 4 | 16 |
| Small (SM) | 360 - 599px | 4 | 16 |
| Medium (MD) | 600 - 959px | 12 | 24 |
| Large (LG) | 960 - 1439px | 12 | 24 |
| X Large (XL) | 1440 - 1920px | 12 | 24 |
The Cardinal 1D grid is made up of three elements: Columns, Gutters, and Margins.
We design mobile first because it is the hardest and should be done first. Once the mobile design questions are answered, designing for other devices are easier. The smallest of the designs will have only the essential features.
Grids can be stacked in order to provide the best layout for the user. Diversify content by staggering full width grids with more narrow grids.
Cardinal guidelines generally promote the use of spacers over deeply nested grids so as to limit complication of the design or code. However, when your content requires more structure that cannot be supported by a single layout grid, you have the nested grid option.
Note:If you are unsure of which to use, consult with a Cardinal developer. See the spacers section for more information.
The flex grid is based on percentages in order to size layouts appropriately. The recommended container is 90% of the screen which allows for the margin and gutter on each side of the device to adjust accordingly.
Design promotes the use of spacers on mobile instead of aligning to the grid in order to avoid poor user layout.
Stack mutiple grids to avoid monotonous layouts.