# @types/postcss-color-gray

> TypeScript definitions for postcss-color-gray

Latest version **5.0.2** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/postcss-color-gray
pnpm add @types/postcss-color-gray
yarn add @types/postcss-color-gray
bun add @types/postcss-color-gray
```

## Health

**Score 40/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 5.0.2 |
| Published | 2023-11-07 |
| First published | 2023-10-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.6 KB |
| Known vulnerabilities | 0 (+5 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 51384 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/postcss-color-gray
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/postcss-color-gray
- npm.io page: https://npm.io/package/@types/postcss-color-gray

## Dependencies (1)

- [postcss](https://npm.io/package/postcss.md) ^7.0.5

## Recent versions

- 5.0.2 (latest) — 2023-11-07
- 5.0.1 — 2023-10-18
- 5.0.0 — 2023-10-09

## README

# Installation
> `npm install --save @types/postcss-color-gray`

# Summary
This package contains type definitions for postcss-color-gray (https://github.com/postcss/postcss-color-gray).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/postcss-color-gray.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/postcss-color-gray/index.d.ts)
````ts
import { Plugin } from "postcss";

declare namespace postcssGray {
    interface Options {
        /**
         * The `preserve` option determines whether the original `gray()` function
         * should be preserved or replaced.
         * By default, the `gray()` function is replaced.
         * By setting `preserve` to `true`, the original `gray()` function is preserved
         * @default false
         * @example
         * ```css
         * body {
         *   background-color: gray(100);
         *   color: gray(0 / 90%);
         * }
         *
         * body {
         *     background-color: gray(100);
         *     background-color: rgb(255,255,255);
         *     color: gray(0 / 90%);
         *     color: rgba(0,0,0,.9);
         *   }
         * ```
         * @see {@link <https://github.com/postcss/postcss-color-gray#preserve>}
         */
        preserve?: boolean | undefined;
    }
}

declare const postcssGray: Plugin<postcssGray.Options>;

export = postcssGray;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: [postcss](https://npmjs.com/package/postcss)

# Credits
These definitions were written by [Adam Thompson-Sharpe](https://github.com/MysteryBlokHed).

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