theming/types#
THEME_ID_PATTERN#
Ids must be safe to embed in a [data-theme='…'] attribute selector.
RegisteredTheme#
Extends#
Properties#
base#
Drives fallback, color-scheme, MUI mode and nativeTheme.themeSource.
Inherited from#
css?#
Raw CSS. It is sanitized and scoped to the theme.
Inherited from#
cssInStylesheet#
True when the CSS already lives in index.css and must not be emitted.
density?#
Inherited from#
description?#
Inherited from#
editorTheme?#
monaco?#
Inherited from#
id#
Inherited from#
muiPalette?#
Inherited from#
name#
Inherited from#
owner?#
Plugin id, for unregisterByOwner and for grouping in settings.
plotlyTemplate?#
Inherited from#
ThemeDefinition.plotlyTemplate
preview?#
Inherited from#
sanitizedCss?#
Sanitized output of css, ready to inject.
shape?#
Inherited from#
source#
tokens#
Only the tokens that differ from the base built-in theme; the rest are inherited.
Inherited from#
typography?#
Inherited from#
warnings#
ThemeDefinition#
Extended by#
Properties#
base#
Drives fallback, color-scheme, MUI mode and nativeTheme.themeSource.
css?#
Raw CSS. It is sanitized and scoped to the theme.
density?#
description?#
editorTheme?#
monaco?#
id#
muiPalette?#
name#
plotlyTemplate?#
preview?#
shape?#
tokens#
Only the tokens that differ from the base built-in theme; the rest are inherited.
typography?#
ThemeDensity#
Properties#
scale?#
Clamped to [0.85, 1.25]. Multiplies the chrome height tokens.
ThemeMuiPalette#
Properties#
background?#
paper?#
primary?#
secondary?#
success?#
ThemePreview#
Swatch used by the onboarding schematic and the settings theme list.
Properties#
accent#
card#
chrome#
divider#
muted#
sunken#
text#
ThemeShape#
Properties#
borderWidth?#
radiusLg?#
radiusMd?#
radiusPill?#
radiusSm?#
shadow1?#
shadow2?#
shadow3?#
ThemeTypography#
Properties#
fontMono?#
fontScale?#
Clamped to [0.9, 1.15].
fontUi?#
Family list. Must resolve to shipped or system fonts — no @font-face.
fontWeightUi?#
Clamped to [300, 600].
ThemeWarning#
Properties#
kind#
message#
subject#
Token name, CSS property, or selector the warning refers to.
ThemeBase#
The theme model shared by built-in themes and plugin-provided skins.
Built-in themes and plugin themes use the same type, registry and settings UI.
ThemeId#
'dark' | 'light' | 'warm-paper' | 'high-contrast-dark' | 'high-contrast-light' | '<pluginId>.<localId>'