# postcss-shade

> A PostCSS plugin to adjust or change the shade of a color

Latest version **1.0.0** (published 2018-03-12) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2018-03-12 |
| First published | 2018-03-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6.0.0 |
| Dependencies | 3 |
| Unpacked size | 5.8 KB |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Arpad Hegedus |
| Maintainers | arpadhegedus |
| Keywords | postcss, postcss-plugin, preprocessor, plugin, css, style, shade, chromatism, color |

## Links

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

## Dependencies (3)

- [postcss](https://npm.io/package/postcss.md) ^6.0.19
- [chromatism](https://npm.io/package/chromatism.md) ^3.0.0
- [postcss-plugin-utilities](https://npm.io/package/postcss-plugin-utilities.md) ^2.2.2

## 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) — 2018-03-12

## README

# PostCSS Shade [<img src="https://postcss.github.io/postcss/logo.svg" alt="PostCSS Logo" width="90" height="90" align="right">](https://github.com/postcss/postcss)
[![NPM Version](https://img.shields.io/npm/v/postcss-shade.svg)](https://www.npmjs.com/package/postcss-shade)
[![Build Status](https://travis-ci.org/arpadHegedus/postcss-shade.svg?branch=master)](https://travis-ci.org/arpadHegedus/postcss-shade)
[![BGitter Chat](https://img.shields.io/badge/chat-gitter-blue.svg)](https://gitter.im/postcss/postcss)

A [PostCSS](https://github.com/postcss/postcss) plugin to adjust or change the shade of a color


## Installation

```
npm install postcss-shade
```

## Examples

### Simple use, setting shade percentage
```css
/* input */
div { color: shade(#34bbed, 80) }
```
```css
/* output */
div { color: #2da0cc }
```

### Adjusting shade
```css
/* input */
div { color: shade(#34bbed, +10) }
div.other { color: shade(#34bbed, -10) }
```
```css
/* output */
div { color: #38c8ff }
div.other { color: #2ea6d3 }
```

## Usage

### [Postcss JS API](https://github.com/postcss/postcss#js-api)

```js
postcss([require('postcss-shade')]).process(yourCSS);
```

### [Gulp](https://github.com/gulpjs/gulp)

```js
const gulp = require('gulp');
const postcss = require('gulp-postcss');
const shade = require('postcss-shade');
gulp.task('css', () => {
    gulp.src('path/to/dev/css')
        .pipe(postcss([
            shade()
        ]))
        .pipe(gulp.dest('path/to/build/css'));
});
```

## Tests

```
npm test
```

## License
This project is licensed under the [MIT License](./LICENSE).

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