0.0.4 • Published 7 years ago

@mcrowe/pstyled v0.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
7 years ago

styled

Style components in pure Javascript.

Usage

npm install @mcrowe/styled --save

import styled from '@mcrowe/styled'

const Box = styled('div', {
  display: 'flex'
})

const Row = styled(Box, {
  flexDirection: 'row'
})

const Button = styled('button', props => ({
  padding: 12,
  backgroundColor: props.primary ? 'green' : 'gray'
}))

const MyComponent = () =>
  <Row>
    <Button>No</Button>
    <Button primary>Yes</Button>
  </Row>

Development

Install npm modules:

npm install

Run tests:

npm test

Release

Release a new version:

bin/release.sh

This will publish a new version to npm, as well as push a new tag up to github.

0.0.4

7 years ago

0.0.3

7 years ago