Skip to content

PoscCSS plugin that replaces RGB(a) values with hexadecimal analogues

License

Notifications You must be signed in to change notification settings

Diverently/postcss-rgba-hex

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

postcss-rgba-hex

npm version build status

PostCSS plugin that replaces RGB(a) values with hexadecimal analogues

Processing example

this code

.element {
    border: 2px solid rgba(0,0,0,.2);
}

converts to

.element {
    border: 2px solid #000000;
}

Installation

npm i --save-dev postcss-rgba-hex

Usage

postcss([ require('postcss-rgba-hex') ])

Please refer to PostCSS documentation for you current environment.

Options

rgbOnly [Boolean]

default: false

Process only rgb color values

rgbaOnly [Boolean]

default: false

Process only rgba color values

silent [Boolean]

default: false

Omit verbose conversion logging

About

PoscCSS plugin that replaces RGB(a) values with hexadecimal analogues

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%