diff --git a/packages/hiccup-css/src/units.ts b/packages/hiccup-css/src/units.ts index 15d5df6942..9280aa1f67 100644 --- a/packages/hiccup-css/src/units.ts +++ b/packages/hiccup-css/src/units.ts @@ -2,11 +2,13 @@ export const em = (x: number) => `${x}em`; export const ex = (x: number) => `${x}ex`; export const rem = (x: number) => `${x}rem`; export const percent = (x: number) => `${x}%`; -export const px = (x: number) => `${x}px`; +export const px = (x: number) => `${x >>> 0}px`; export const vh = (x: number) => `${x}vh`; export const vw = (x: number) => `${x}vw`; -export const ms = (x: number) => `${x}ms`; +export const ms = (x: number) => `${x >>> 0}ms`; export const sec = (x: number) => `${x}s`; export const deg = (x: number) => `${x}deg`; +export const rad = (x: number) => `${x}rad`; +export const turn = (x: number) => `${x}turn`;