Simple layout components that support presentational components
We are using Storybook for development:
npm run storybook
At the moment we are using nwb for packaging:
npm run build
The system uses a mobile first grid system based on 5 breakpoints
- mobile (2)
- tablet portrait (4)
- tablet landscape (8)
- HD (12)
- UHD (16)
All rows have default behavours defined through the breakpoints collapsing down to a single column on mobile.
// Phones (portrait phones, up to 34em)
// Small devices (landscape phones, 34em and up)
@media (min-width: 34em) { ... }
// Medium devices (tablets, 48em and up)
@media (min-width: 48em) { ... }
// Large devices (desktops, 62em and up)
@media (min-width: 62em) { ... }
// Extra large devices (large desktops, 75em and up)
@media (min-width: 75em) { ... }
- FullWidth sections assume you are using the 16 grid
- All sections provide sensible padding on row areas
- Standard section should be used with a maximum of 12 columns as it has a max width of 1600px (or equivelent)
- FullWidth Section
- Standard Section
- Page
- Row 16
- Row 12,4
- Row 4,12
- Row 8,8
- Row 4,4,8
- Row 4,8,4
- Row 8,4,4
- Row 12
- Row 6,6
- Row 4,4,4
- Row 3,3,3,3
- Row 6,3,3
- Row 3,3,6
- Row 3,6,3
- Row 8,4
- Row 4,8
- Row 3,9
- Row 9,3
- Row 2,2 (tablet-p)
- Row 4,4 (tablet-l)
- Row 1,1 (mobule)
- Set content components order for mobile
- Any row can have breakpoint column numbers specified - overiding defaults