postcss-greyscale

1.0.0 • Public • Published

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 JS API

postcss([require('postcss-greyscale')]).process(yourCSS);

Gulp

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

npm i postcss-greyscale

Weekly Downloads

13

Version

1.0.0

License

MIT

Unpacked Size

5.32 kB

Total Files

8

Last publish

Collaborators

  • arpadhegedus