Skip to content
Docs
Reference

Function: readHostTheme()

Function: readHostTheme() in @ticketlayer/live.

@ticketlayer/live


@ticketlayer/live / index / readHostTheme

function readHostTheme(source?: HostThemeSource): HostTheme;

Defined in: state/hostTheme.ts:79

The host page's value for every themeable token that differs from its default. A value set on body wins over one on the root, as it does for everything inside body; a token the page left at its default, or never defined, is left out, so the checkout keeps the channel's value for it.

Parameters#

ParameterType
sourceHostThemeSource

Returns#

HostTheme