619b69986e8a61ae1b8705bfdd186144545887dc6a21ef3d9adc9633d64d67de9f5b01af472e8b81e3df253c2d2abfaba1853866c0536121a69ca97086b2ce 806 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # [postcss][postcss]-colormin
  2. > Minify colors in your CSS files with PostCSS.
  3. ## Install
  4. With [npm](https://npmjs.org/package/postcss-colormin) do:
  5. ```
  6. npm install postcss-colormin --save
  7. ```
  8. ## Example
  9. ```js
  10. var postcss = require('postcss')
  11. var colormin = require('postcss-colormin');
  12. var css = 'h1 {color: rgba(255, 0, 0, 1)}';
  13. console.log(postcss(colormin()).process(css).css);
  14. // => 'h1 {color:red}'
  15. ```
  16. For more examples see the [tests](src/__tests__/index.js).
  17. ## Usage
  18. See the [PostCSS documentation](https://github.com/postcss/postcss#usage) for
  19. examples for your environment.
  20. ## Contributors
  21. See [CONTRIBUTORS.md](https://github.com/cssnano/cssnano/blob/master/CONTRIBUTORS.md).
  22. ## License
  23. MIT © [Ben Briggs](http://beneb.info)
  24. [postcss]: https://github.com/postcss/postcss