postcss-var
v1.1.2
Published
PostCSS plugin to simply use CSS variables
Downloads
6
Maintainers
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