forked from rajun/ar-test
feat: add hex colour schema
This commit is contained in:
parent
d225d6209e
commit
559a487efb
3
app/schemas/color.ts
Normal file
3
app/schemas/color.ts
Normal 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');
|
||||||
Loading…
x
Reference in New Issue
Block a user