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
- Host: GitHub
- URL: https://github.com/mzabriskie/create-stylesheet
- Owner: mzabriskie
- Created: 2016-03-16T02:02:08.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-03-26T21:55:46.000Z (over 10 years ago)
- Last Synced: 2025-10-30T01:13:18.823Z (8 months ago)
- Topics: css, css-in-js, javascript, stylesheets
- Language: JavaScript
- Size: 7.81 KB
- Stars: 9
- Watchers: 0
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# create-stylesheet [](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);
```