create-stylesheet

Dynamically create a stylesheet

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
create-stylesheet
900.3.07 years ago7 years agoMinified + gzip package size for create-stylesheet in KB

Readme

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