Interface: ThemeRuntimeConfig
Defined in: runtime.ts:47
Configuration for createThemeRuntime().
Properties
defaultMode?
optionaldefaultMode:ThemeMode
Defined in: runtime.ts:51
Mode to use when no persisted value is found.
Default
'system'
defaultTheme?
optionaldefaultTheme:string
Defined in: runtime.ts:49
Theme to use when no persisted value is found.
Default
'default'
root?
optionalroot:HTMLElement
Defined in: runtime.ts:55
Root element to apply data attributes to.
Default
document.documentElement
storageKey?
optionalstorageKey:string
Defined in: runtime.ts:53
localStorage key for persistence.
Default
'tt-theme'