From 559a487efbd85bc2184154856027606eedb3a2c8 Mon Sep 17 00:00:00 2001 From: rajun Date: Tue, 27 Oct 2026 16:28:50 +0530 Subject: [PATCH] feat: add hex colour schema --- app/schemas/color.ts | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 app/schemas/color.ts diff --git a/app/schemas/color.ts b/app/schemas/color.ts new file mode 100644 index 0000000..6fd55b5 --- /dev/null +++ b/app/schemas/color.ts @@ -0,0 +1,3 @@ +import { z } from 'zod'; + +export const hexColor = z.string().regex(/^#[0-9a-fA-F]{6}$/, 'Use a colour like #3d6b4f');