import { z } from "zod"; import { THEMES } from "@/lib/themes"; export const ProjectTitleSchema = z.string().trim().min(1, "Title is required").max(60); /** A project's assigned theme: one of the known themes, or null for * "Default Theme" (follow the user's global theme preference). */ export const ProjectThemeSchema = z.union([z.enum(THEMES), z.null()]); export type ProjectTheme = z.infer;