0.0.0-1 • Published 6 years ago
style-props v0.0.0-1
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',
},
})
)