@singleware/oss
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

Object Style Sheets

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

Usage

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:

npm i @singleware/oss

License

MIT © Silas B. Domingos

/@singleware/oss/

    Package Sidebar

    Install

    npm i @singleware/oss

    Weekly Downloads

    10

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    70.6 kB

    Total Files

    14

    Last publish

    Collaborators

    • balmanth