API
Default values
With exception the media query that use rem unit.
| type | Extra small (xs) | Small (sm) | Medium (md) | Larger (lg) | Extra large (xl) | |
|---|---|---|---|---|---|---|
| Container | shape | 'full' | 'full' | 45 | 60 | 71.25 |
| Padding | number | 1.875 | 1.875 | 1.875 | 1.875 | 1.875 |
| Columns | number | 4 | 8 | 12 | 12 | 12 |
| Gutter | number | 1.875 | 1.875 | 1.875 | 1.875 | 1.875 |
| Breakpoints | number | 1 | 33.75 | 48 | 64 | 71.25 |
debug
You can use only rgb color
| type | default | description | |
|---|---|---|---|
| debug | string | '#0470F5' | Color of grid on debug mode |
Custom config
To set your custom config, you need to import the ThemeProvider from emotion theming', and pass a named object grid to the theme prop, as the example below:
import { ThemeProvider } from '@emotion/react';
Try to change the config in playground:
Col auto
Col-md-4 Col-lg-6
Col-md-4 Col-lg-6
Col-md-2 Col-lg-3
Col-md-2 Col-lg-3
Col-md-2 Col-lg-3
Col-md-2 Col-lg-3