IAdaptiveThemeSettings
Type interface
Options for AdaptiveTheme.
Sources
IAdaptiveThemeSettings is an interface: it describes a shape of data and is not imported on its own.
Properties
baseColorType
number|string|ColorThe color the palette is built from, and its first color, as a hex number, a CSS string or a
Color. It also colors the primary buttons, and in dark mode tints all interface colors. If not set, green#4b8e39is used, andbaseColor2defaults to yellow#ffdd00.baseColor2Type
number|string|ColorA second color: the palette then runs as a gradient from
baseColorto this one, instead of spreading out over the color wheel.countType
undefined|numberDefault10Number of series colors to make.
darkType
undefined|false|trueDefaultfalseMakes a dark theme, with a dark background and interface colors faintly tinted with the hue of
baseColor.interleaveType
undefined|false|trueDefaultfalseTakes the colors in an alternating order (1, 4, 2, 5, 3, 6), so series next to each other differ more. Most useful with
baseColor2, whose gradient puts similar colors side by side.keepContrastType
boolean|numberDefaultfalseLightens (in dark mode) or darkens colors that would have too little contrast with the background, keeping their hue:
truefor at least 3:1, or a ratio, e.g.4.5. Applies to the series colors,baseColorandbaseColor2included, and the primary buttons.mapShadeType
undefined|false|trueDefaultfalseFills map polygons with a mid shade of
baseColor, as light as a map's default land, instead ofbaseColoritself.repeatLightnessType
boolean|numberDefault0.1Once every color has been used, each new round of colors is this much lighter (HSL lightness:
0.1is 10%; a negative value makes it darker) instead of the same colors again.trueis0.1;falseor0repeats the colors as they are.