feat(docs): add docs and restructure
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
export function remToPx(remValue: number) {
|
||||
let rootFontSize =
|
||||
typeof window === 'undefined'
|
||||
? 16
|
||||
: parseFloat(window.getComputedStyle(document.documentElement).fontSize)
|
||||
|
||||
return remValue * rootFontSize
|
||||
}
|
||||
Reference in New Issue
Block a user