PostCSS plugin to transform rebeccapurple color to rgb()
Switch branches/tags
Clone or download
Latest commit 9eaf9b2 Sep 19, 2018

postcss-color-rebeccapurple CSS Standard Status Build Status

PostCSS plugin to transform W3C CSS rebeccapurple color to more compatible CSS (rgb()).

Why this plugin ?

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


$ npm install postcss-color-rebeccapurple


// 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()

Using this input.css:

body {
  color: rebeccapurple

you will get:

body {
  color: rgb(102, 51, 153);

Checkout tests for more examples.


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

$ git clone
$ git checkout -b patch-1
$ npm install
$ npm test