• Version 1.5.0
  • Published
  • No dependencies
  • MIT license


npm i @types/color-string
yarn add @types/color-string
pnpm add @types/color-string


TypeScript definitions for color-string



function get

get: typeof get;


    interface ColorDescriptor

    interface ColorDescriptor {}

      property model

      model: 'rgb' | 'hsl' | 'hwb';

        property value

        value: Color;

          Type Aliases

          type Color

          type Color = [number, number, number, number];


            namespace get

            namespace get {}

              function hsl

              hsl: (colorString: string) => Color | null;

                function hwb

                hwb: (colorString: string) => Color | null;

                  function rgb

                  rgb: (colorString: string) => Color | null;

                    namespace to

                    namespace to {}

                      function hex

                      hex: (...args: Array<number | number[]>) => string;

                        function hsl

                        hsl: (...args: Array<number | number[]>) => string;

                          function hwb

                          hwb: (...args: Array<number | number[]>) => string;

                            function keyword

                            keyword: (...args: Array<number | number[]>) => string;

                              function rgb

                              rgb: typeof rgb;

                                namespace to.rgb

                                namespace to.rgb {}

                                  function percent

                                  percent: (...args: Array<number | number[]>) => string;

                                    Package Files (1)

                                    Dependencies (0)

                                    No dependencies.

                                    Dev Dependencies (0)

                                    No dev dependencies.

                                    Peer Dependencies (0)

                                    No peer dependencies.


                                    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/@types/color-string.

                                    • Markdown
                                    • HTML
                                      <a href="https://www.jsdocs.io/package/@types/color-string"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>