vira
Version:
A simple and highly versatile design system using element-vir.
10 lines (9 loc) • 313 B
JavaScript
export var ColorType;
(function (ColorType) {
ColorType["Color"] = "color";
ColorType["Fill"] = "fill";
ColorType["Stroke"] = "stroke";
})(ColorType || (ColorType = {}));
export function extractIconColor(element, colorType) {
return window.getComputedStyle(element).getPropertyValue(colorType);
}