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