@jsfkit/types
    Preparing search index...

    Type Alias Color

    Color: (
        | SrgbColor
        | ScRgbColor
        | HslColor
        | SystemColor
        | SchemeColor
        | PresetColor
        | AutoColor
        | IndexedColor
    ) & { transforms?: ColorTransform[] }

    A colour, which can be used is various parts of a workbook. The base colour can be transformed using a list of colour transformations.

    The base colour must be defined using one of the following colour models:

    • SrgbColor: Standard sRGB colour space, defined by a CSS-style hex string (e.g. FF0000).
    • ScRgbColor: A colour in Microsoft's scRGB colour space, defined by red, green, and blue values as percentages.
    • HslColor: A colour in HSL colour space, defined by hue, saturation, and lightness values.
    • SystemColor: An OS-defined system colour (e.g. window text, highlight), defined using one of an enumerated set of values.
    • SchemeColor: A reference to a theme colour.
    • PresetColor: A preset colour, similar to CSS's defined colours.
    • AutoColor: Colour choice left to the application.
    • IndexedColor: A legacy colour indexing scheme.

    Type Declaration

    • Optionaltransforms?: ColorTransform[]

      Optional list of colour transformations to apply to the base colour.

      The transformations must be applied in order, and each transformation must be applied to the result of the previous one. There can be multiple transformations of the same type.

      The transformations are defined by ColorTransform, which includes operations such as tinting, shading, and saturation adjustments.