This commit is contained in:
Maciej Caderek
2022-01-17 04:54:19 +01:00
parent 7052c74171
commit 9482b11319
16 changed files with 140 additions and 86 deletions

View File

@@ -33,19 +33,24 @@ export type Image = {
};
export type Coords = {
darkColor: string;
lightColor: string;
onLight: string;
onDark: string;
onBorder: string;
};
export type SquareStyle = Gradient | Solid | Image;
export type MoveIndicator =
| { type: "hueShift"; data: number }
| { type: "color"; data: string };
export type Style = {
name: string;
background: SquareStyle;
light: SquareStyle;
dark: SquareStyle;
moveIndicator: SquareStyle;
border: SquareStyle | null;
moveIndicator: MoveIndicator;
border: SquareStyle;
coords: Coords;
};