function applyCssVars()

in kotlin/app-homepage-react/client/src/app/service/theme.ts [30:38]


function applyCssVars(themeProperties: ThemeProperties) {
    isDark = themeProperties.isDark;
    let newCssVars = new Map<String, String>();
    themeProperties.properties.forEach((cssVar) => {
        document.documentElement.style.setProperty(cssVar.name, cssVar.value);
        newCssVars.set(cssVar.name, cssVar.value);
    })
    cssVars = newCssVars;
}