feat: add hex colour schema

This commit is contained in:
rajun 2026-10-27 16:28:50 +05:30
parent d225d6209e
commit 559a487efb

3
app/schemas/color.ts Normal file
View File

@ -0,0 +1,3 @@
import { z } from 'zod';
export const hexColor = z.string().regex(/^#[0-9a-fA-F]{6}$/, 'Use a colour like #3d6b4f');