in kotlin/app-homepage-react/client/src/app/service/theme.ts [18:28]
export async function initCssVars() {
// subscribe to the changes in theme css variables
window.addEventListener("message", (e) => {
if (e.data.properties !== undefined) {
applyCssVars(e.data);
}
});
const themeCssVars = await getCssVarsAndSubscribeForChanges() as ThemeProperties;
applyCssVars(themeCssVars);
}