Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/singleware/oss

Object Style Sheets package.
https://github.com/singleware/oss

browser css helpers javascript singleware typescrypt

Last synced: 4 days ago
JSON representation

Object Style Sheets package.

Awesome Lists containing this project

README

        

# Object Style Sheets

This package provides some classes to help you create CSS statements at runtime in a easy way.

## Usage

```ts
import * as OSS from '@singleware/oss';

const stylesheet = new OSS.Stylesheet();
const style = stylesheet.select('.my-class');

style.display = 'block';
style.padding = '1rem';
style.boxSizing = 'border-box';

const css = stylesheet.toString();
```

## Install

Using npm:

```sh
npm i @singleware/oss
```

## License

[MIT © Silas B. Domingos](https://balmante.eti.br)