Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/singleware/oss
- Owner: Singleware
- License: mit
- Created: 2018-12-31T19:25:18.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-06T17:42:13.000Z (over 5 years ago)
- Last Synced: 2024-10-11T12:47:19.169Z (about 1 month ago)
- Topics: browser, css, helpers, javascript, singleware, typescrypt
- Language: TypeScript
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)