style-props
v0.0.0-1
Published
Prototype for styled-system v4
Downloads
9
Readme
style-props
Alternative/prototype for styled-system v4
npm i style-props
import styled from 'styled-components'
import styleProps from 'style-props'
const Box = styled.div(
styleProps({
properties: [
'width',
'color',
'backgroundColor',
],
scales: {
color: 'colors',
backgroundColor: 'colors',
},
aliases: {
bg: 'backgroundColor',
},
})
)