1.0.6 • Published 4 years ago

@j-kallunki/css-in-to-js v1.0.6

Weekly downloads
374
License
MIT
Repository
github
Last release
4 years ago

@j-kallunki/css-in-to-js

travis build codecov coverage version downloads MIT License

Convert any CSS-string to Styled-format object or CSS-in-JS object with CSS-declarations as strings.

Usage

yarn add @j-kallunki/css-in-to-js
OR
npm install --save @j-kallunki/css-in-to-js
import { cssToJs } from '@j-kallunki/css-in-to-js';
const cssObject = cssToJs(cssString);

Settings

cssToString

If you wan't to get CSS-declarations in CSS-string format use:

const cssObject = cssToJs(cssString, { cssToString: true })

Tools

minifyCss()

Minify CSS-string

Acknowledgements

Uses PostCSS for parsing the CSS.

1.0.6

4 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago