0.0.10 • Published 7 years ago

twirl-js v0.0.10

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

twirl-js

Create CSS-in-JS Object Literals with Template Strings

Build Status codecov styled with prettier npm.io

Usage

Install

npm install --save twirl-js

Write styles!

import twirl from 'twirl-js'

const background = 'papayawhip'
const size = 18

const css = twirl`
  background: ${background}
  font-size: ${size}px
  color: '#000'
`

console.log(css) // { background: 'papayawhip', 'font-size': '18px', color: '#000' }

Contributing

Found a bug? Have a feature request or found a way to increase performance? I'd love any input, so feel free to open an issue or submit a pull request.

For pull requests, all I ask is that you run the tests and format your code first (you can use the npm test and npm run format to do so). And if you've created a new feature, I just ask that you add tests to cover whatever amazing thing you've added 😎

0.0.10

7 years ago

0.0.9

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.3

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago