MCPcopy Create free account
hub / github.com/ecomfe/tempad-dev / pxToRem

Function pxToRem

packages/extension/utils/css.ts:312–314  ·  view source on GitHub ↗
(value: string, rootFontSize: number)

Source from the content-addressed store, hash-verified

310}
311
312function pxToRem(value: string, rootFontSize: number) {
313 return transformPxValue(value, (val) => `${toDecimalPlace(val / rootFontSize)}rem`)
314}
315
316export function normalizeCssValue(value: string, config: CodegenConfig, prop?: string): string {
317 if (!value) return value

Callers 2

normalizeCssValueFunction · 0.85
processValueFunction · 0.85

Calls 2

toDecimalPlaceFunction · 0.90
transformPxValueFunction · 0.85

Tested by

no test coverage detected