0.3.0 • Published 8 years ago

create-stylesheet v0.3.0

Weekly downloads
983
License
MIT
Repository
github
Last release
8 years ago

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);