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

    Function labToCSSString

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

      This function formats the Lab color components according to the CSS Color Module Level 4 specification, which uses the format: lab(L% a b / alpha).

      Parameters

      • color: LabColor

        The Lab color object to convert

      Returns string

      The CSS-compatible string representation