@dguijs/postcss-rezimota

PostCSS plugin for generating CSS using ACSS classes

Usage no npm install needed!

<script type="module">
  import dguijsPostcssRezimota from 'https://cdn.skypack.dev/@dguijs/postcss-rezimota';
</script>

README

@dGUIJS/postcss-rezimota

Build Status Dependency Status devDependencies Status codecov npm (scoped)

PostCSS plugin for generating your CSS using ACSS classes.

Example

Input:

.container {
    @Bgc(red);
    p: 20px;
}

Output:

.container {
    background-color: red;
    padding: 20px;
}

Installation

npm install @dguijs/postcss-rezimota --save-dev

Usage

You can use the plugin with PostCSS CLI.

  1. Install the plugin alongside postcss-cli:

    npm install postcss-cli @dguijs/postcss-rezimota --save-dev
    
  2. Add script for compiling CSS to your package.json:

    "scripts": {
        "build:css": "postcss input.css -u @dguijs/postcss-rezimota -o output.css"
    }
    
  3. Call npm run build:css.

Configuration

No configuration. Consider it a feature.

License

See LICENSE file for details.