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

    Type Alias CreatedColor<T>

    CreatedColor: T extends "rgb"
        ? RGBColor
        : T extends "p3"
            ? P3Color
            : T extends "xyz"
                ? XYZColor
                : T extends "hsl"
                    ? HSLColor
                    : T extends "hsv"
                        ? HSVColor
                        : T extends "hwb"
                            ? HWBColor
                            : T extends "lab"
                                ? LabColor
                                : T extends "lch"
                                    ? LChColor
                                    : T extends "oklab"
                                        ? OKLabColor
                                        : T extends "oklch"
                                            ? OKLChColor
                                            : (...) extends (...) ? (...) : (...)

    Represents a type that maps a ColorSpace to its corresponding color model.

    This type alias allows for conditional extraction of a specific color model based on the provided ColorSpace type parameter. Supported color spaces include 'rgb', 'xyz', 'hsl', 'hsv', 'hwb', 'lab', 'lch', 'oklab', 'oklch', 'jzazbz', and 'jzczhz'. If a provided color space does not match one of these, the type resolves to never.

    Type Parameters

    • T extends ColorSpace

      Extends the ColorSpace defining the color space to retrieve.