UNPKG

element-plus

Version:
5 lines (3 loc) 131 B
export const getCssVariable = (el: HTMLElement, property: string) => { return getComputedStyle(el).getPropertyValue(property) }