Skip to main content
API Reference / utils/theme
applyTheme(theme, username?): void
Defined in: utils/theme.ts:107 Applies theme to DOM root. Optionally persists to localStorage for the given user.

Parameters

theme

ThemeId Theme identifier to apply.

username?

string If provided, persists the choice for this user.

Returns

void