Skip to main content

Interface: ThemeRuntimeConfig

Defined in: runtime.ts:52

Configuration for createThemeRuntime().

Properties

defaultMode?

optional defaultMode?: ThemeMode

Defined in: runtime.ts:56

Mode to use when no persisted value is found.

Default

'system'

defaultTheme?

optional defaultTheme?: string

Defined in: runtime.ts:54

Theme identifier written to data-tt-theme. Provide only for MFE / multi-theme CSS scoping. When omitted, data-tt-theme is not written to the DOM.


root?

optional root?: HTMLElement

Defined in: runtime.ts:60

Root element to apply data attributes to.

Default

document.documentElement

storageKey?

optional storageKey?: string

Defined in: runtime.ts:58

localStorage key for persistence.

Default

'tt-theme'