[UI] Extract our ColorSample and Tag components from twenty-front to twenty-ui. (#5543)
Two more components extracted out of twenty-front: `ColorSample` and `Tag`.
This commit is contained in:
7
packages/twenty-ui/src/theme/utils/themeColorSchema.ts
Normal file
7
packages/twenty-ui/src/theme/utils/themeColorSchema.ts
Normal file
@ -0,0 +1,7 @@
|
||||
import { z } from 'zod';
|
||||
|
||||
import { MAIN_COLOR_NAMES, ThemeColor } from '@ui/theme';
|
||||
|
||||
export const themeColorSchema = z.enum(
|
||||
MAIN_COLOR_NAMES as [ThemeColor, ...ThemeColor[]],
|
||||
);
|
||||
Reference in New Issue
Block a user