Files
js/utils/pxFunctions.ts
T
2022-03-17 14:41:47 -07:00

8 lines
154 B
TypeScript

export function numberToPx(number: number): string {
return `${number}px`;
}
export function pxToRem(px: number): string {
return `${px / 16}rem`;
}