1.0.2 • Published 5 years ago
css-inject v1.0.2
css-inject
Inject CSS rules into the head above any other stylesheets
Table of Contents
Install
This project uses node and npm.
$ npm install css-inject
$ # OR
$ yarn add css-inject
Usage
import ccInject from 'css-inject'
const rules = `
body { background: tomato; }
div { padding: 10px; }
`
const remove = cssInject(rules)
// To remove style again
remove()
Contribute
- 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
License
MIT