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

    Function hwbToCSSString

    • Converts an HWB color to a CSS color string.

      This function formats the HWB color as a CSS string according to the CSS Color Level 4 specification. The format is: hwb(hue whiteness% blackness%[ / alpha])

      Parameters

      • color: HWBColor

        The HWB color to convert to a CSS string

      Returns string

      The CSS string representation of the color