@candlefw/css

CSS Management Tools

Usage no npm install needed!

<script type="module">
  import candlefwCss from 'https://cdn.skypack.dev/@candlefw/css';
</script>

README

CandleFW CSS

CandleFW CSS is a lightweight css parser, editor, and generator tool.

Install

NPM

npm install --save @candlefw/css

Usage

note: This script uses ES2015 module syntax, and has the extension .mjs. To include this script in a project, you may need to use the node flag --experimental-modules; or, use a bundler that supports ES modules, such as rollup.

import css from "@candlefw/css";

css(`
    div, a.header, h1 > a {
        color: red;
        height: 100em;
    }
`).then(parsed_css => {
    parser_css.rules;
});