MCPcopy Create free account
hub / github.com/UI5/webcomponents / getTheme

Function getTheme

packages/base/src/config/Theme.ts:29–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27 * @returns {string} the current theme name
28 */
29const getTheme = (): string => {
30 if (curTheme === undefined) {
31 curTheme = getSharedValue<string>("theme") ?? getConfiguredTheme();
32 }
33
34 return curTheme;
35};
36
37/**
38 * Applies a new theme after fetching its assets from the network.

Callers 9

setThemeRootFunction · 0.70
isThemeFunction · 0.70
isLegacyThemeFamilyFunction · 0.70
bootExecutorFunction · 0.50
secondaryBootFunction · 0.50
onThemeRegisteredFunction · 0.50
getCollectionFunction · 0.50
ReactPlaygroundFunction · 0.50

Calls 1

getSharedValueFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…