Skip to main content

Interface: ThemeScriptConfig

Defined in: ssrScript.ts:14

Configuration for the SSR bootstrap script.

Properties

defaultMode?

optional defaultMode?: ThemeMode

Defined in: ssrScript.ts:18

Mode to use when no persisted value is found.

Default

'system'

defaultTheme?

optional defaultTheme?: string

Defined in: ssrScript.ts:16

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


storageKey?

optional storageKey?: string

Defined in: ssrScript.ts:20

localStorage key. Must match the runtime's storageKey.

Default

'tt-theme'