This commit is contained in:
2023-01-04 19:40:37 +01:00
parent da527a0857
commit ad6f136dd0
7 changed files with 71 additions and 5 deletions

View File

@@ -9,3 +9,8 @@ export function copy(value: string) {
const msg = get(t)('common.copied_to_clipboard')
notify.success(msg)
}
export function getCSSVariable(variable: string): string {
if (typeof window === 'undefined') return ''
return window.getComputedStyle(window.document.body).getPropertyValue(variable)
}