JSPM

create-stylesheet

0.3.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1169
  • Score
    100M100P100Q100381F
  • License MIT

Dynamically create a stylesheet

Package Exports

  • create-stylesheet

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (create-stylesheet) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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