postcss-colornames-to-hex

1.0.1 • Public • Published

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;
}

Dependents (4)

Package Sidebar

Install

npm i postcss-colornames-to-hex

Weekly Downloads

1,801

Version

1.0.1

License

MIT

Last publish

Collaborators

  • avigoldman