UNPKG

@mintlify/validation

Version:

Validates mint.json files

14 lines (13 loc) 418 B
import { z } from 'zod'; export const appearanceSchema = z .object({ default: z .enum(['system', 'light', 'dark']) .optional() .describe('The default light/dark mode. Defaults to system'), strict: z .boolean() .optional() .describe('Whether to hide the light / dark mode toggle. Defaults to `false`.'), }) .describe('Light / dark mode toggle settings');