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.
38 lines
649 B
38 lines
649 B
3 years ago
|
import { system } from '@styled-system/core'
|
||
|
|
||
|
const defaults = {
|
||
|
space: [0, 4, 8, 16, 32, 64, 128, 256, 512],
|
||
|
}
|
||
|
|
||
|
const config = {
|
||
|
position: true,
|
||
|
zIndex: {
|
||
|
property: 'zIndex',
|
||
|
scale: 'zIndices',
|
||
|
},
|
||
|
top: {
|
||
|
property: 'top',
|
||
|
scale: 'space',
|
||
|
defaultScale: defaults.space,
|
||
|
},
|
||
|
right: {
|
||
|
property: 'right',
|
||
|
scale: 'space',
|
||
|
defaultScale: defaults.space,
|
||
|
},
|
||
|
bottom: {
|
||
|
property: 'bottom',
|
||
|
scale: 'space',
|
||
|
defaultScale: defaults.space,
|
||
|
},
|
||
|
left: {
|
||
|
property: 'left',
|
||
|
scale: 'space',
|
||
|
defaultScale: defaults.space,
|
||
|
},
|
||
|
}
|
||
|
|
||
|
export const position = system(config)
|
||
|
|
||
|
export default position
|