Skip to content

Commit

Permalink
fix: add CustomColor type
Browse files Browse the repository at this point in the history
  • Loading branch information
severinlandolt committed Jan 5, 2024
1 parent d8d1840 commit 82445b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/inputTypes.ts
Expand Up @@ -58,6 +58,7 @@ const colorValues = [
] as const;

export type Color = (typeof colorValues)[number];
export type CustomColor = (typeof colorValues)[number] | string;
export const getIsBaseColor = (color: Color | string) => colorValues.includes(color as Color);

const justifyContentValues = ["start", "end", "center", "between", "around", "evenly"] as const;
Expand Down

0 comments on commit 82445b5

Please sign in to comment.