9
common/resources/client/ui/themes/utils/set-theme-value.ts
Executable file
9
common/resources/client/ui/themes/utils/set-theme-value.ts
Executable file
@@ -0,0 +1,9 @@
|
||||
import {themeEl} from '@common/core/root-el';
|
||||
|
||||
export function setThemeValue(key: string, value: string) {
|
||||
themeEl?.style.setProperty(key, value);
|
||||
}
|
||||
|
||||
export function removeThemeValue(key: string) {
|
||||
themeEl?.style.removeProperty(key);
|
||||
}
|
||||
Reference in New Issue
Block a user