NPM package for creating a grid overlay.
npm i @thomascoppein/grid-helper
import GridHelper from '@thomascoppein/grid-helper';const GridHelper = new GridHelper();| property | default |
|---|---|
| gutter | '30px' |
| gutterMobile | '16px' |
| columns | 12 |
| columnsMobile | 4 |
| columnsColor | '#ffcfdf' |
| zIndex | 9999999 |
| containerMaxWidth | '80vw' |
| containerPadding | '10vw' |
| containerPaddingMobile | '16px' |
| mobileBreakpoint | '375px' |
const GridHelper = new GridHelper({
gutter: '50px',
gutterMobile: '20px',
columns: 12,
columnsMobile: 4,
columnsColor: '#000000',
zIndex: 999999,
containerMaxWidth: '1600px',
containerPadding: '5vw',
containerPaddingMobile: '3vw',
mobileBreakpoint: '600px',
});Use the key-combination CTRL + G to toggle the helper.