Skip to main content

Interface: ThemeScriptConfig

Defined in: ssrScript.ts:15

Configuration for the SSR bootstrap script.

Properties​

defaultMode?​

optional defaultMode?: ThemeMode

Defined in: ssrScript.ts:19

Mode to use when no persisted value is found.

Default​

'system'

defaultTheme?​

optional defaultTheme?: string

Defined in: ssrScript.ts:17

Theme identifier written to data-tt-theme. When omitted, data-tt-theme is not written.


storageKey?​

optional storageKey?: string

Defined in: ssrScript.ts:21

localStorage key. Must match the runtime's storageKey.

Default​

'tt-theme'