UNPKG

@mintlify/validation

Version:

Validates mint.json files

11 lines (10 loc) 550 B
import { z } from 'zod'; import { hexColor } from './reusable/color.js'; export const colorsSchema = z .object({ primary: hexColor.describe('The primary color of the theme'), light: hexColor.optional().describe('The light color of the theme. Used for dark mode'), dark: hexColor.optional().describe('The dark color of the theme. Used for light mode'), }) .strict() .describe('The colors to use in your documentation. At the very least, you must define the primary color. For example: { "colors": { "primary": "#ff0000" } }');