PostCSS plugin to transform SASS/compass color functions to more compatible CSS.
Inspired, and modified from, postcss-color-function.
Installation
$ npm install git://github.com/adam-h/postcss-sass-color-functions.git
Usage
// dependenciesvar fs = var postcss = var sassColorFunctions = // css to be processedvar css = fs // process cssvar output = css
Using this input.css
:
you will get:
Checkout tests.js for examples.
Currently Supported functions
mix(one, two, weight)
rgba(color, alpha)
darken(color, amount)
lighten(color, amount)
tint(color, amount)
shade(color, amount)