From fd398250b78f9e755795085f350f27f58534cd02 Mon Sep 17 00:00:00 2001 From: lochungtin Date: Sat, 29 May 2021 12:38:08 +0100 Subject: [PATCH] color typing --- src/utils/types.ts | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/utils/types.ts b/src/utils/types.ts index 39da84d..e5f8555 100644 --- a/src/utils/types.ts +++ b/src/utils/types.ts @@ -16,3 +16,29 @@ export interface ActionType { type: ActionName, payload?: any } + +// color types +export interface ColorSchemeType { + bgColor: string, + boardColor: string, + tileColors: TileColorSchemeType, + textColor: string, + textboxColor: string, + btnColor: string, + accentColor: string, +} + +export interface TileColorSchemeType { + '2': string, + '4': string, + '8': string, + '16': string, + '32': string, + '64': string, + '128': string, + '256': string, + '512': string, + '1024': string, + '2048': string, + large: string, +}