UNPKG

@mintlify/validation

Version:

Validates mint.json files

6 lines (5 loc) 200 B
import { z } from 'zod'; const hexColorRegex = /^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/; export const hexColor = z .string() .regex(hexColorRegex, 'Must be a hex color string, with a leading #');