mirror of
https://github.com/netbirdio/docs.git
synced 2026-04-30 14:26:37 +00:00
add first version of tailwind docs
This commit is contained in:
8
src/lib/remToPx.js
Normal file
8
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
|
||||
}
|
||||
Reference in New Issue
Block a user