npm.io
5.0.2 • Published 2 years ago

@types/postcss-color-gray

Licence
MIT
Version
5.0.2
Deps
1
Size
5 kB
Vulns
5
Weekly
0
Stars
51.4K

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 0939 GMT
  • Dependencies: postcss

Credits

These definitions were written by Adam Thompson-Sharpe.