MCPcopy Create free account
hub / github.com/StaticMania/keep-react / remToPx

Function remToPx

utils/remToPx.ts:1–4  ·  view source on GitHub ↗
(rem: string)

Source from the content-addressed store, hash-verified

1export const remToPx = (rem: string) => {
2 const remValue = Number(rem.split('rem')[0])
3 return remValue * 16 + 'px'
4}

Callers 3

HeadingContentFunction · 0.90
BodyContentFunction · 0.90
DisplayContentFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected