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

Function loadThemeBase

packages/base/src/theming/applyTheme.ts:25–34  ·  view source on GitHub ↗
(theme: string)

Source from the content-addressed store, hash-verified

23};
24
25const loadThemeBase = async (theme: string) => {
26 if (!isThemeBaseRegistered()) {
27 return;
28 }
29
30 const cssData = await getThemeProperties(BASE_THEME_PACKAGE, theme);
31 if (cssData) {
32 createOrUpdateStyle(cssData, "data-ui5-theme-properties", BASE_THEME_PACKAGE, theme);
33 }
34};
35
36const deleteThemeBase = () => {
37 removeStyle("data-ui5-theme-properties", BASE_THEME_PACKAGE);

Callers 1

applyThemeFunction · 0.85

Calls 3

isThemeBaseRegisteredFunction · 0.85
getThemePropertiesFunction · 0.85
createOrUpdateStyleFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…