cssinjs / styled-jss

Styled Components on top of JSS.
http://cssinjs.org/styled-jss
MIT License
217 stars 25 forks source link

Currying interface #18

Closed kof closed 7 years ago

kof commented 7 years ago

Lets add or even replace the current interface with the currying one:

const Button = styled('div')({
  color: 'red'
})

The nice thing about it is:

const div = styled('div')

const Button = div({
  color: 'red'
})

const AnotherButton = div({
  color: 'green'
})