create-stylesheet

0.3.0 • Public • Published

create-stylesheet build status

Dynamically create a stylesheet

Example

import createStyleSheet from 'create-stylesheet';
 
let style = createStyleSheet({
  '.foo': {
    fontSize: 12,
    padding: 5
  },
  '.bar': {
    fontSize: 16,
    color: 'grey'
  }
});
 
document.head.appendChild(style);

Readme

Keywords

Package Sidebar

Install

npm i create-stylesheet

Weekly Downloads

2,425

Version

0.3.0

License

MIT

Last publish

Collaborators

  • mzabriskie