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