1.0.1 • Published 7 years ago

postcss-colornames-to-hex v1.0.1

Weekly downloads
973
License
MIT
Repository
github
Last release
7 years ago

postcss-colornames-to-hex

This plugin will convert CSS color names like blue or black to their hexadecimal equivalent.

Installation

npm install postcss-colornames-to-hex --save

Usage

postcss([ require('postcss-colornames-to-hex') ])
// do your processing here 🎉

Or use it in some other PostCSS way.

Example

You put this in....

a {
  color: blue;
}

and you get this out...

a {
  color: #0000FF;
}