postcss-colornames-to-hex
v1.0.1
Published
PostCSS plugin to convert color names to hexadecimal values
Downloads
5,121
Maintainers
Readme
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;
}