feat: add plane docs to turbo
This commit is contained in:
parent
9539fca585
commit
18ff810a14
75 changed files with 8856 additions and 17 deletions
8
apps/docs/src/lib/remToPx.js
Normal file
8
apps/docs/src/lib/remToPx.js
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
export function remToPx(remValue) {
|
||||
let rootFontSize =
|
||||
typeof window === 'undefined'
|
||||
? 16
|
||||
: parseFloat(window.getComputedStyle(document.documentElement).fontSize)
|
||||
|
||||
return parseFloat(remValue) * rootFontSize
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue