Skip to content

PostCSS plugin to convert color names to hexadecimal values

Notifications You must be signed in to change notification settings

avigoldman/postcss-colornames-to-hex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

PostCSS plugin to convert color names to hexadecimal values

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published