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

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

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;
}
}
```