MCPcopy
hub / github.com/HamishMW/portfolio / pxToRem

Function pxToRem

app/utils/style.js:25–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23 * Convert pixel values to rem for a11y
24 */
25export const pxToRem = px => `${px / 16}rem`;
26
27/**
28 * Convert ms token values to a raw numbers for ReactTransitionGroup

Callers 1

theme.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected