1. postcss-color-rebeccapurple
Use the rebeccapurple color keyword in CSS
postcss-color-rebeccapurple
Package: postcss-color-rebeccapurple
Created by: csstools
Last modified: Mon, 19 Feb 2024 08:03:48 GMT
Version: 9.0.3
License: MIT-0
Downloads: 25,516,223
Repository: https://github.com/csstools/postcss-plugins

Install

npm install postcss-color-rebeccapurple
yarn add postcss-color-rebeccapurple

PostCSS RebeccaPurple PostCSS Logo

npm version Build Status Discord

Baseline Status CSS Standard Status

 npm install postcss-color-rebeccapurple --save-dev

PostCSS RebeccaPurple lets you use the rebeccapurple color keyword in CSS.

.heading {
	color: rebeccapurple;
}

/* becomes */

.heading {
	color: #639;
}

About the rebeccapurple keyword

In 2014, Rebecca Alison Meyer, the daughter of Eric A. Meyer, an American web design consultant best known for his advocacy work on behalf of CSS, passed away of a brain tumor at six years of age.

In her memory, the hex color #663399 is named rebeccapurple and added to the CSS Colors list.

Usage

Add PostCSS RebeccaPurple to your project:

 npm install postcss postcss-color-rebeccapurple --save-dev

Use it as a PostCSS plugin:

 const postcss = require('postcss');
const postcssRebeccaPurple = require('postcss-color-rebeccapurple');

postcss([
	postcssRebeccaPurple(/* pluginOptions */)
]).process(YOUR_CSS /*, processOptions */);

PostCSS RebeccaPurple runs in all Node environments, with special
instructions for:

Options

preserve

The preserve option determines whether the original notation
is preserved. By default, it is not preserved.

 postcssRebeccaPurple({ preserve: true })
.heading {
	color: rebeccapurple;
}

/* becomes */

.heading {
	color: #639;
	color: rebeccapurple;
}

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code