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

Function setThemeRoot

packages/base/src/config/ThemeRoot.ts:46–54  ·  view source on GitHub ↗
(themeRoot: string)

Source from the content-addressed store, hash-verified

44 * @returns { Promise<void> }
45 */
46const setThemeRoot = (themeRoot: string): Promise<void> | undefined => {
47 if (currThemeRoot === themeRoot) {
48 return;
49 }
50
51 currThemeRoot = themeRoot;
52
53 return attachCustomThemeStylesToHead(getTheme());
54};
55
56const formatThemeLink = (theme: string, validatedThemeRoot: string) => {
57 return `${validatedThemeRoot}Base/baseLib/${theme}/css_variables.css`;

Callers

nothing calls this directly

Calls 2

getThemeFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…