Skip to content

arpadHegedus/postcss-greyscale

Repository files navigation

PostCSS Greyscale PostCSS Logo

NPM Version Build Status BGitter Chat

A PostCSS plugin to get the greyscale equivalent of a color

Installation

npm install postcss-greyscale

Examples

/* input */
div { color: greyscale(#34bbed) }
/* output */
div { color: #9f9f9f }

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.

About

A PostCSS plugin to get the greyscale equivalent of a color

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published