Practic BUI (Base UI) - v1.0.0
    Preparing search index...

    Function colorFormat

    • Writes an sRGB colour in a CSS notation, adding alpha only when it is not opaque.

      Parameters

      • rgba: Rgba

        Colour to write.

      • notation: "hex" | "rgb" | "hsl" | "hwb" | "oklab" | "oklch"

        Notation to write it in.

      Returns string