Function to help generate sizing solutions across Javascript and CSS.

This commit is contained in:
Ken Sternberg 2023-11-13 14:53:05 -08:00
parent 2545815f08
commit e3b1ba63a6

View file

@ -0,0 +1,5 @@
export function getRootStyle(selector: string, element: HTMLElement = document.documentElement) {
return getComputedStyle(element, null).getPropertyValue(selector);
}
export default getRootStyle;