diff --git a/styles/src/tokens.ts b/styles/src/tokens.ts index bde1c0aa2c..69fc05ff63 100644 --- a/styles/src/tokens.ts +++ b/styles/src/tokens.ts @@ -66,22 +66,8 @@ export const fontWeights = { } // Standard size unit used for paddings, margins, borders, etc. -export type Size = - | "px" - | "xs" - | "sm" - | "md" - | "lg" - | "xl"; -export const sizes = { - px: 1, - xs: 2, - sm: 4, - md: 6, - lg: 8, - xl: 12, -}; +export type Size = number export type SizeToken = Token; function size(value: Size): SizeToken { @@ -91,6 +77,15 @@ function size(value: Size): SizeToken { }; } +export const sizes = { + px: size(1), + xs: size(2), + sm: size(4), + md: size(6), + lg: size(8), + xl: size(12), +}; + export type Color = string; export interface ColorToken { value: Color,