Skip to content
ts
import { initializeTheme } from '@trail-run/core/device/site-theme';

Function: initializeTheme()

ts
function initializeTheme(rootElement): void;

Defined in: src/device/site-theme.ts:144

Initialize the SiteTheme singleton instance with the given root HTML element.

This must be called before getTheme is invoked.

Defaults to document.body if not provided.

Parameters

rootElement

HTMLElement = document.body

Returns

void

Released under the MIT License.