Licence
MIT
Version
1.0.1
Deps
3
Vulns
6
Weekly
0
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;
}