# postcss-colour

> Define colours in css the way her majesty Queen Elizabeth II intended it.

Latest version **1.0.0** (published 2020-09-19) · CC0-1.0 license · 0 weekly downloads

## Install

```sh
npm install postcss-colour
pnpm add postcss-colour
yarn add postcss-colour
bun add postcss-colour
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2020-09-19 |
| First published | 2020-09-19 |
| Weekly downloads | 0 |
| License | CC0-1.0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=6.0.0 |
| Dependencies | 0 |
| Unpacked size | 14.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 42 |
| Author | John de Stigter |
| Maintainers | chautelly |
| Keywords | postcss, css, postcss-plugin, colour |

## Links

- npm: https://www.npmjs.com/package/postcss-colour
- Repository: https://github.com/rjdestigter/postcss-colour
- Homepage: https://github.com/rjdestigter/postcss-colour#readme
- Issues: https://github.com/rjdestigter/postcss-colour/issues
- npm.io page: https://npm.io/package/postcss-colour

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2020-09-19

## README

# PostCSS Colour [<img src="https://postcss.github.io/postcss/logo.svg" alt="PostCSS" width="90" height="90" align="right">][postcss]

[PostCSS Colour] lets you use define colours in css the way her majesty Queen Elizabeth II intended it.

Build and test architecture cloned from [postcss-short-size]

```pcss
body {
  colour: Blue;
  background-colour: #fff;
  border-colour: rgb(25, 0, 0);
}

/* becomes */

body {
  color: Blue;
  background-color: #fff;
  border-color: rgb(25, 0, 0);
}
```

## Usage

Add [PostCSS Colour] to your project:

```bash
npm install postcss postcss-colour --save-dev
```

Use [PostCSS Colour] to process your CSS:

```js
const postcssColour = require('postcss-colour');

postcssColour.process(YOUR_CSS /*, processOptions, pluginOptions */);
```

Or use it as a [PostCSS] plugin:

```js
const postcss = require('postcss');
const postcssColour = require('postcss-colour');

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

[PostCSS Colour] runs in all Node environments, with special instructions for:

| [Node](INSTALL.md#node) | [PostCSS CLI](INSTALL.md#postcss-cli) | [Webpack](INSTALL.md#webpack) | [Create React App](INSTALL.md#create-react-app) | [Gulp](INSTALL.md#gulp) | [Grunt](INSTALL.md#grunt) |
| --- | --- | --- | --- | --- | --- |

[PostCSS]: https://github.com/postcss/postcss
[PostCSS Colour]: https://github.com/rjdestigter/postcss-colour
[postcss-short-size]: https://github.com/jonathantneal/postcss-short-size

---
_Source: https://npm.io/package/postcss-colour · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
