feat(docs): add docs and restructure

This commit is contained in:
BennyKok committed 2023-12-28 00:06:32 +08:00
1 parent afc67bc0b9
commit 498374195d
56 files changed
+3751 -54

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
export function remToPx(remValue: number) {
let rootFontSize =
typeof window === 'undefined'
? 16
: parseFloat(window.getComputedStyle(document.documentElement).fontSize)
return remValue * rootFontSize
}