Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

postcss-var

hegedusarpad21MIT1.1.2

PostCSS plugin to simply use CSS variables

util, tools, postcss, variables

readme

postcss-google-color

PostCSS plugin for easily using CSS variables.

Installation

npm install postcss-var

Example

// todo

Usage

Using Gulp.

var gulp        = require('gulp'),
    postcss     = require('gulp-postcss'),
    cssvar      = require('postcss-var');

gulp.task('css', function() {
    gulp.src('path/to/dev-css').
        .pipe(postcss({
            // other postcss plugins
            cssvar
            // possible options
            // cssvar({ 
            //    varibles: {}
            // })
        }))
        .pipe(gulp.dest('path/to/build/css'));
});

// rest of the gulp file