You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
696 B
33 lines
696 B
3 years ago
|
import { system } from '@styled-system/core';
|
||
|
var defaults = {
|
||
|
space: [0, 4, 8, 16, 32, 64, 128, 256, 512]
|
||
|
};
|
||
|
var config = {
|
||
|
gridGap: {
|
||
|
property: 'gridGap',
|
||
|
scale: 'space',
|
||
|
defaultScale: defaults.space
|
||
|
},
|
||
|
gridColumnGap: {
|
||
|
property: 'gridColumnGap',
|
||
|
scale: 'space',
|
||
|
defaultScale: defaults.space
|
||
|
},
|
||
|
gridRowGap: {
|
||
|
property: 'gridRowGap',
|
||
|
scale: 'space',
|
||
|
defaultScale: defaults.space
|
||
|
},
|
||
|
gridColumn: true,
|
||
|
gridRow: true,
|
||
|
gridAutoFlow: true,
|
||
|
gridAutoColumns: true,
|
||
|
gridAutoRows: true,
|
||
|
gridTemplateColumns: true,
|
||
|
gridTemplateRows: true,
|
||
|
gridTemplateAreas: true,
|
||
|
gridArea: true
|
||
|
};
|
||
|
export var grid = system(config);
|
||
|
export default grid;
|