postcss-simple-color-functions

0.3.0 • Public • Published

PostCSS Simple Color Functions Build Status

PostCSS plugin for manipulating color transformations.

.foo {
    color: colors(#23bc98 darken(0.5);
    background-color: colors(#23bc98 brighten(1.2);
}
.foo {
    color: #00a381;
    background-color: #71fad3;
}
.foo {
    color: colors(#23bc98 rgb);
}
.foo {
    color: rgb(35,188,152);
}
.foo {
    color: colors(#23bc98 brightness(20%));
    background-color: colors(#23bc98 brightness(-20%));
}
.foo {
    color: #58e3bd;
    background-color: #009675;
}

Installation

Add [PostCSS Simple Color Functions] to your build tool.

npm install postcss postcss-simple-color-functions --save-dev

or

yarn add postcss postcss-simple-color-functions --dev

Usage

postcss([ require('postcss-simple-color-functions') ])

See PostCSS docs for examples for your environment.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.3.0
    13
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.3.0
    13
  • 0.2.0
    28
  • 0.1.0
    1

Package Sidebar

Install

npm i postcss-simple-color-functions

Weekly Downloads

42

Version

0.3.0

License

MIT

Unpacked Size

7.48 kB

Total Files

7

Last publish

Collaborators

  • rajdee