@types/postcss-color-gray
TypeScript icon, indicating that this package has built-in type declarations

5.0.2 • Public • Published

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

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

Credits

These definitions were written by Adam Thompson-Sharpe.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/postcss-color-gray

Weekly Downloads

2,640

Version

5.0.2

License

MIT

Unpacked Size

4.72 kB

Total Files

5

Last publish

Collaborators

  • types