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

    Function oklchToCSSString

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

      This function formats the OKLCh color as a CSS oklch() function string, with the lightness component expressed as a percentage, and appropriate formatting for the chroma and hue components. Alpha values are included when defined, using the slash syntax.

      Parameters

      • color: OKLChColor

        The OKLCh color object to convert

      Returns string

      The CSS-compatible string representation