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

    Function harmony

    • Generates a color harmony based on the specified type.

      Type Parameters

      • T extends
            | "rgb"
            | "hwb"
            | "hsl"
            | "hsv"
            | "xyz"
            | "lab"
            | "lch"
            | "oklab"
            | "oklch"
            | "jzazbz"
            | "jzczhz"

      Parameters

      • color: string | Color

        The base color to generate the harmony from, as a string or Color object

      • type: HarmonyType

        The type of harmony to generate

      • outputSpace: T

        The color space to convert the resulting colors to

      Returns CreatedColor<T>[]

      An array of colors in the specified output color space that form the requested harmony