feat: Initialize rewrite

This commit is contained in:
Jesse Wierzbinski 2024-07-22 11:49:47 +02:00
parent 47ce9bd9f8
commit f39d34b769
No known key found for this signature in database
143 changed files with 7257 additions and 4032 deletions

10
lib/remToPx.ts Normal file
View file

@ -0,0 +1,10 @@
export function remToPx(remValue: number) {
const rootFontSize =
typeof window === "undefined"
? 16
: Number.parseFloat(
window.getComputedStyle(document.documentElement).fontSize,
);
return remValue * rootFontSize;
}