Skip to main content
API Reference / utils/theme
getActiveTheme(username?): ThemeId
Defined in: utils/theme.ts:92 Gets the current active theme identifier for the given user from localStorage. Falls back to dark-purple if nothing is saved or the value is invalid.

Parameters

username?

string Optional username. If omitted uses the module-level active user.

Returns

ThemeId The resolved ThemeId.