MCPcopy Create free account
hub / github.com/TanStack/query / convertRemToPixels

Function convertRemToPixels

packages/query-devtools/src/utils.tsx:150–152  ·  view source on GitHub ↗
(rem: number)

Source from the content-addressed store, hash-verified

148}
149
150export const convertRemToPixels = (rem: number) => {
151 return rem * parseFloat(getComputedStyle(document.documentElement).fontSize)
152}
153
154export const getPreferredColorScheme = () => {
155 const [colorScheme, setColorScheme] = createSignal<'light' | 'dark'>('dark')

Callers 3

handleDragStartFunction · 0.90
DraggablePanelFunction · 0.90
utils.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected