This plugin will convert CSS color names like blue or black to their hexadecimal equivalent.
npm install postcss-colornames-to-hex --savepostcss([ require('postcss-colornames-to-hex') ])
// do your processing here 🎉Or use it in some other PostCSS way.
You put this in....
a {
color: blue;
}and you get this out...
a {
color: #0000FF;
}