Skip to content

Commit

Permalink
using satisfies
Browse files Browse the repository at this point in the history
  • Loading branch information
takurinton committed Jun 15, 2023
1 parent d68bdc8 commit 6f9ee8f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
28 changes: 14 additions & 14 deletions src/styles/color.ts
@@ -1,19 +1,19 @@
export type Color = {
40?: string; // TODO: Abolish this key or define all colors with this key
50?: string; // TODO: Abolish this key or define all colors with this key
100: string;
200: string;
300: string;
400: string;
500: string;
600: string;
700: string;
800: string;
900: string;
1000?: string; // TODO: Abolish this key or define all colors with this key
40?: `#${string}`;
50?: `#${string}`;
100: `#${string}`;
200: `#${string}`;
300: `#${string}`;
400: `#${string}`;
500: `#${string}`;
600: `#${string}`;
700: `#${string}`;
800: `#${string}`;
900: `#${string}`;
1000?: `#${string}`;
};

export const colors: { [color: string]: Color } = {
export const colors = {
red: {
100: "#FFE2E5",
200: "#FFBAC3",
Expand Down Expand Up @@ -76,4 +76,4 @@ export const colors: { [color: string]: Color } = {

1000: "#001326",
},
};
} satisfies Record<string, Color>;
6 changes: 3 additions & 3 deletions src/themes/palette.ts
Expand Up @@ -52,7 +52,7 @@ export type Palette = {
};

export const palette: Palette = {
white: colors.basic[50] as string, // TODO
white: colors.basic[50],
black: colors.basic[900],
primary: {
deepDark: colors.blue[700],
Expand Down Expand Up @@ -98,9 +98,9 @@ export const palette: Palette = {
},
background: {
default: "#FFFFFF",
dark: colors.blue[40] as string, // TODO
dark: colors.blue[40],
active: colors.blue[100],
hint: colors.blue[50] as string, // TODO
hint: colors.blue[50],
},
divider: colors.basic[400],
icon: {
Expand Down

0 comments on commit 6f9ee8f

Please sign in to comment.