postcss rgba mixins

node v10.24.1
version: master
endpointsharetweet
const postcss = require('postcss'); // CSS to be processed var input = ` @mixin my-mixin($color: rgba(255, 255, 255, 0.6)) { color: $color; } .selector { @include my-mixin; @include my-mixin(#000); } `; // Process CSS const {css} = await postcss() .use(require('postcss-advanced-variables')) .process(input); console.log(css);
Loading…

no comments

    sign in to comment