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.
36 lines
705 B
36 lines
705 B
import { system } from '@styled-system/core'
|
|
|
|
const defaults = {
|
|
space: [0, 4, 8, 16, 32, 64, 128, 256, 512],
|
|
}
|
|
|
|
const 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 const grid = system(config)
|
|
export default grid
|