@dragonspark/chroma-kit
    Preparing search index...

    Function lchToCSSString

    • Converts an LCh color object to a CSS-compatible string representation.

      This function formats the LCh color as a CSS lch() function string according to the CSS Color Module Level 4. The lightness component is formatted as a percentage, the chroma as a number, and the hue as degrees.

      Parameters

      • color: LChColor

        The LCh color object to convert

      Returns string

      The CSS-compatible string representation