UNPKG

@primer/primitives

Version:

Typography, spacing, and color primitives for Primer design system

21 lines (20 loc) 665 B
import { z } from 'zod'; import { referenceValue } from './referenceValue.js'; import { baseToken } from './baseToken.js'; import { tokenType } from './tokenType.js'; import { collection } from './collections.js'; import { scopes } from './scopes.js'; export const fontFamilyToken = baseToken .extend({ $value: z.union([z.string(), referenceValue]), $type: tokenType('fontFamily'), $extensions: z .object({ 'org.primer.figma': z.object({ collection: collection(['base/typography', 'typography']).optional(), scopes: scopes(['fontFamily']).optional(), }), }) .optional(), }) .strict();