theme-vir - v28.21.2
Preparing search index...
buildColorTheme
Function buildColorTheme
buildColorTheme
(
colorPalette
:
Readonly
<
ColorPaletteVars
>
,
__namedParameters
?:
Readonly
<
BuildLowLevelColorThemeOptions
>
,
)
:
{
darkOverride
:
ColorThemeOverride
<
Record
<
`
${
Lowercase
<
string
>
}
-
${
Lowercase
<
string
>
}
`
,
_RequireAtLeastOne
<
{
background
:
ColorInitValue
;
foreground
:
ColorInitValue
}
,
"foreground"
|
"background"
,
>
,
>
,
>
;
defaultLight
:
ColorTheme
<
Record
<
`
${
Lowercase
<
string
>
}
-
${
Lowercase
<
string
>
}
`
,
_RequireAtLeastOne
<
{
background
:
ColorInitValue
;
foreground
:
ColorInitValue
}
,
"foreground"
|
"background"
,
>
,
>
,
>
;
}
Creates a color theme from a color palette.
Parameters
colorPalette
:
Readonly
<
ColorPaletteVars
>
__namedParameters
:
Readonly
<
BuildLowLevelColorThemeOptions
>
= {}
Returns
{
darkOverride
:
ColorThemeOverride
<
Record
<
`
${
Lowercase
<
string
>
}
-
${
Lowercase
<
string
>
}
`
,
_RequireAtLeastOne
<
{
background
:
ColorInitValue
;
foreground
:
ColorInitValue
}
,
"foreground"
|
"background"
,
>
,
>
,
>
;
defaultLight
:
ColorTheme
<
Record
<
`
${
Lowercase
<
string
>
}
-
${
Lowercase
<
string
>
}
`
,
_RequireAtLeastOne
<
{
background
:
ColorInitValue
;
foreground
:
ColorInitValue
}
,
"foreground"
|
"background"
,
>
,
>
,
>
;
}
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
theme-vir - v28.21.2
Loading...
Creates a color theme from a color palette.