postcss-greyscale
1.0.0 • Public • Published PostCSS Greyscale
A PostCSS plugin to get the greyscale equivalent of a color
Installation
npm install postcss-greyscale
Examples
div { color: greyscale(#34bbed) }
Usage
postcss([require('postcss-greyscale')]).process(yourCSS);
const gulp = require('gulp');
const postcss = require('gulp-postcss');
const greyscale = require('postcss-greyscale');
gulp.task('css', () => {
gulp.src('path/to/dev/css')
.pipe(postcss([
greyscale()
]))
.pipe(gulp.dest('path/to/build/css'));
});
Tests
npm test
License
This project is licensed under the MIT License.
Package Sidebar
Install
Weekly Downloads