# simian-color-functions

> Color functions I use with PostCSS

Latest version **1.2.0** (published 2016-06-13) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install simian-color-functions
pnpm add simian-color-functions
yarn add simian-color-functions
bun add simian-color-functions
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2016-06-13 |
| First published | 2016-06-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | akshat.sh@gmail.com |
| Maintainers | akshat1 |
| Keywords | postcss, color |

## Links

- npm: https://www.npmjs.com/package/simian-color-functions
- Repository: https://github.com/akshat1/simian-color-functions
- Homepage: https://github.com/akshat1/simian-color-functions#readme
- Issues: https://github.com/akshat1/simian-color-functions/issues
- npm.io page: https://npm.io/package/simian-color-functions

## Dependencies (1)

- [tinycolor2](https://npm.io/package/tinycolor2.md) ^1.3.0

## Alternatives

- [postcss-color-hex-alpha](https://npm.io/package/postcss-color-hex-alpha.md) — 6.4M weekly downloads
- [randomcolor](https://npm.io/package/randomcolor.md) — 348.0K weekly downloads
- [bows](https://npm.io/package/bows.md) — 1.3K weekly downloads
- [ep_prefer_color_scheme](https://npm.io/package/ep_prefer_color_scheme.md) — 260 weekly downloads
- [coc-yank](https://npm.io/package/coc-yank.md) — 61 weekly downloads

## Recent versions

- 1.2.0 (latest) — 2016-06-13
- 1.0.0 — 2016-06-12

## README

# simian-color-functions
Color functions. I use them with PostCSS using the excellent postcss-functions plugin, but these can be used anywhere one needs to lighten or darken color values.

API:
```
const ColorFunctions = require('simian-color-functions');

ColorFunctions.lighten('black', '50%');               // -> 'grey'
ColorFunctions.lighten('#000000', '0.5');             // -> '#808080'
ColorFunctions.lighten('rgb(0, 0, 0)', '50%');        // -> 'rgba(128, 128, 128)'
ColorFunctions.lighten('rgba(0, 0, 0, 0.7)', '50%');  // -> 'rgba(128, 128, 128, 0.7)'

ColorFunctions.darken('white', '50%');                // -> 'grey'
ColorFunctions.darken('black', '50%');                // -> 'black'
```

To see detailed documentation, just run the default gulp task which will also generate the jsdoc.

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