/** * Takes in a CSS pixel value (e.g. "25px") * and returns its rem value ("1.5625rem") */ export function pxToRem(px: string): string { return `${Number(px.replace("px", "")) / 16}rem`; }