0.2.1 • Published 7 years ago

postcss-aurelia-ux v0.2.1

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

PostCSS Aurelia Ux Build Status

PostCSS plugin to load Aurelia UX javascript style bindings into a Post CSS workflow, transforming the string interpolation values into a plain string which compiles as valid CSS, which is then reversed before being given to Aurelia to use.

PostCSS

Aurelia-UX

Input

.foo {
    background-color: ${ background || '#000' };
}

While Processing

.foo {
    background-color: "${ background || '#000' }";
}

Output

.foo {
    background-color: ${ background || '#000' };
}

Usage

ES6 / Typescript

import { PostcssAureliaUx, AureliaUxParse } from 'postcss-aurelia-ux';

postcss([ PostcssAureliaUx ], { parser: AureliaUxParse })