Inject CSS rules into the head above any other stylesheets
This project uses node and npm.
$ npm install css-inject
$ # OR
$ yarn add css-inject
import ccInject from 'css-inject'
const rules = `
body { background: tomato; }
div { padding: 10px; }
`
const remove = cssInject(rules)
// To remove style again
remove()
- Fork it and create your feature branch: git checkout -b my-new-feature
- Commit your changes: git commit -am 'Add some feature'
- Push to the branch: git push origin my-new-feature
- Submit a pull request
MIT