An open API service indexing awesome lists of open source software.

https://github.com/mzabriskie/create-stylesheet

Dynamically create a stylesheet
https://github.com/mzabriskie/create-stylesheet

css css-in-js javascript stylesheets

Last synced: 6 months ago
JSON representation

Dynamically create a stylesheet

Awesome Lists containing this project

README

          

# create-stylesheet [![build status](https://img.shields.io/travis/mzabriskie/create-stylesheet.svg?style=flat-square)](https://travis-ci.org/mzabriskie/create-stylesheet)

Dynamically create a stylesheet

## Example

```js
import createStyleSheet from 'create-stylesheet';

let style = createStyleSheet({
'.foo': {
fontSize: 12,
padding: 5
},
'.bar': {
fontSize: 16,
color: 'grey'
}
});

document.head.appendChild(style);
```