Add sketch-utils.js

This commit is contained in:
Eryn Wells 2022-08-18 20:22:01 -07:00
parent a078451e11
commit 6a1182886d

View file

@ -0,0 +1,7 @@
function getInlineSketchWidth() {
return getComputedStyle(document.documentElement).getPropertyValue("--body-width");
}
function convertRemToPx(rem) {
return rem * parseFloat(getComputedStyle(document.documentElement).fontSize);
}