https://github.com/co2-git/cassis
Write CSS in JavaScript
https://github.com/co2-git/cassis
Last synced: about 1 year ago
JSON representation
Write CSS in JavaScript
- Host: GitHub
- URL: https://github.com/co2-git/cassis
- Owner: co2-git
- Created: 2015-10-20T07:06:47.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-03-21T20:00:58.000Z (about 10 years ago)
- Last Synced: 2025-02-01T16:23:20.299Z (over 1 year ago)
- Language: JavaScript
- Size: 35.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
cassis
===
Write CSS in JS.
# Install
```bash
npm install cassis
```
# Usage
## Create from object
```js
import { Stylesheet } from 'cassis';
const css = new Stylesheet();
console.log(css.toString());
```
```css
html {
font-size: 100%;
}
@media (max-device-width : 600px) {
body {
font-size: 32px;
}
}
```