@primer/primitives
Version:
Typography, spacing, and color primitives for Primer design system
39 lines (38 loc) • 1.77 kB
TypeScript
import { z } from 'zod';
export declare const typographyValue: z.ZodObject<{
fontSize: z.ZodUnion<readonly [z.ZodObject<{
value: z.ZodNumber;
unit: z.ZodEnum<{
em: "em";
px: "px";
rem: "rem";
}>;
}, z.core.$strict>, z.ZodString]>;
lineHeight: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
fontWeight: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
fontFamily: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
}, z.core.$strip>;
export declare const typographyToken: z.ZodObject<{
$description: z.ZodOptional<z.ZodString>;
$deprecated: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>;
$value: z.ZodUnion<readonly [z.ZodObject<{
fontSize: z.ZodUnion<readonly [z.ZodObject<{
value: z.ZodNumber;
unit: z.ZodEnum<{
em: "em";
px: "px";
rem: "rem";
}>;
}, z.core.$strict>, z.ZodString]>;
lineHeight: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
fontWeight: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
fontFamily: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
}, z.core.$strip>, z.ZodString]>;
$type: z.ZodLiteral<"number" | "border" | "color" | "fontFamily" | "fontWeight" | "transition" | "duration" | "dimension" | "gradient" | "shadow" | "typography" | "cubicBezier" | "custom-viewportRange" | "custom-string">;
$extensions: z.ZodOptional<z.ZodObject<{
'org.primer.llm': z.ZodOptional<z.ZodObject<{
usage: z.ZodOptional<z.ZodArray<z.ZodString>>;
rules: z.ZodOptional<z.ZodString>;
}, z.core.$strip>>;
}, z.core.$strip>>;
}, z.core.$strict>;