Returns a new color that is derived from this color with the adjustments applied.
An array of Adjustments
Return the color adjustments.
Returns the base color without any adjustments applied.
For a system color, returns the authored fallback value (OOXML lastClr) as a 6-digit hex
string (no leading #), or null if none. This is the value used when no
IColor.SystemLookup resolves the color (e.g. headless rendering).
The base value for the color before adjustments.
Returns true if the other color will resolve to the same rgb values as this color.
The other color to compare.
Returns the color as either 'black or white' depending on the luminance.
OptionaldarkMode: booleanOptionalthreshold: number
The threshold to determine if the color is dark or light.
Return a string usable with CSS color properties.
Optionalmode: CSSMode
false/true bake a concrete light/dark value — use when the output leaves
live CSS (clipboard HTML, export, canvas). 'adaptive' emits a light-dark() expression the
browser re-resolves from the subtree's color-scheme — a light/dark flip needs no re-render
(renderers should prefer this; see IColor.CSSMode).
Optionalalpha: boolean
If true alpha will be applied.
Return a HEX with adjustments applied.
OptionaldarkMode: booleanReturn as HSLA with adjustments applied.
OptionaldarkMode: booleanReturn as RGBA with adjustments applied.
OptionaldarkMode: boolean
Represents a color with optional adjustments applied.
An
IColorconsists of:baseColor: The underlying color, which can be a scheme color (e.g., Accent1), a built-in color (e.g., 'red', 'blue'), or defined using various color models (RGB, Hex, HSL).adjustments(optional): An ordered list of color adjustments that modify thebaseColor. These adjustments can include effects like grayscale, inversion, or modifications to specific color components (red, alpha, etc.).See
AdjustmentType