mirror of
https://github.com/netbirdio/docs.git
synced 2026-09-26 08:49:04 +02:00
add first version of tailwind docs
This commit is contained in:
@@ -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