This repository has been archived on 2020-11-02. You can view files and clone it, but cannot push or open issues or pull requests.
TripSit_Suite/node_modules/postcss-color-rebeccapurple
2020-11-01 22:46:04 +00:00
..
node_modules Initial comission of TheLounge base files 2020-11-01 22:46:04 +00:00
CHANGELOG.md Initial comission of TheLounge base files 2020-11-01 22:46:04 +00:00
index.js Initial comission of TheLounge base files 2020-11-01 22:46:04 +00:00
LICENSE Initial comission of TheLounge base files 2020-11-01 22:46:04 +00:00
package.json Initial comission of TheLounge base files 2020-11-01 22:46:04 +00:00
README.md Initial comission of TheLounge base files 2020-11-01 22:46:04 +00:00

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, Im sure you know who Eric Meyer is, & what he did for this language. In memory of Eric Meyers daughter, W3C added new color rebeccapurple to CSS 4 Color Module.

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:

body {
  color: rebeccapurple
}

you will get:

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

Checkout tests for more examples.


Contributing

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

$ git clone https://github.com/postcss/postcss-color-rebeccapurple.git
$ git checkout -b patch-1
$ npm install
$ npm test

Changelog

License