githubEdit

postcss-color-rebeccapurple

PostCSSarrow-up-right plugin to transform W3C CSS rebeccapurple colorarrow-up-right to more compatible CSS (rgb()).

Why this plugin ?

If you did some CSS, I'm sure you know who Eric Meyerarrow-up-right is, & what he did for this language. In memory of Eric Meyer’s daughterarrow-up-right, W3C added new color rebeccapurple to CSS 4 Color Modulearrow-up-right.

Installation

$ npm install postcss-color-rebeccapurple

Usage

// dependencies
var fs = require("fs")
var postcss = require("postcss")
var colorRebeccapurple = require("postcss-color-rebeccapurple")

// css to be processed
var css = fs.readFileSync("input.css", "utf8")

// process css
var output = postcss()
  .use(colorRebeccapurple())
  .process(css)
  .css

Using this input.css:

you will get:

Checkout testsarrow-up-right for more examples.


Contributing

Work on a branch, install dev-dependencies, respect coding style & run tests before submitting a bug fix or a feature.

Last updated