@mintlify/validation
Version:
Validates mint.json files
22 lines (21 loc) • 714 B
JavaScript
import { z } from 'zod';
import { colorSchemaWithOptionalLightAndDark } from './reusable/color.js';
export const backgroundSchema = z
.object({
image: z
.union([
z.string(),
z.object({
light: z.string(),
dark: z.string(),
}),
])
.optional()
.describe('A fixed background image. Can be an absolute URL or relative path.'),
decoration: z
.enum(['gradient', 'grid', 'windows'])
.optional()
.describe('The background decoration of the theme'),
color: colorSchemaWithOptionalLightAndDark.optional().describe('The colors of the background'),
})
.describe('Background color and decoration settings');