/postcss-fade-to-gray

Primary LanguageJavaScriptMIT LicenseMIT

PostCSS Fade To Gray Build Status

PostCSS plugin to desaturate your colors..

.foo {
  color: #dae1e7;
  background-color: #e3342f;
}
.foo {
  color: #dfdfdf;
  background-color: #6a6a6a;
}

Example postcss.config.js

module.exports = ({
  options
}) => ({
  plugins: {
    'postcss-import': {},
    'autoprefixer': {},
    'postcss-fade-to-gray': {
      saturation: 0
    },
    'cssnano': {},
  }
})

Parameters

saturation: 0 (default, max 100)