postcss-colormin

  • Version 8.0.5
  • Published
  • 14.6 kB
  • 4 dependencies
  • MIT license

Install

npm i postcss-colormin
yarn add postcss-colormin
pnpm add postcss-colormin

Overview

Minify colors in your CSS files with PostCSS.

Index

Type Aliases

type AutoprefixerOptions

type AutoprefixerOptions = {
overrideBrowserslist?: string | string[];
};

    type BrowserslistOptions

    type BrowserslistOptions = Pick<browserslist.Options, 'stats' | 'path' | 'env'>;

      type MinifyColorOptions

      type MinifyColorOptions = {
      hex?: boolean;
      alphaHex?: boolean;
      rgb?: boolean;
      hsl?: boolean;
      name?: boolean;
      transparent?: boolean;
      /**
      * Whether to minify colors inside custom property values (default: true)
      */
      transformCustomProperties?: boolean;
      };

        type Options

        type Options = MinifyColorOptions & AutoprefixerOptions & BrowserslistOptions;

          Package Files (1)

          Dependencies (4)

          Dev Dependencies (1)

          Peer Dependencies (1)

          Badge

          To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

          You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/postcss-colormin.

          • Markdown
            [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/postcss-colormin)
          • HTML
            <a href="https://www.jsdocs.io/package/postcss-colormin"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>