From 91ac8c37b9a9c9fb8cc8dd2c6ad38eca7f3c70cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sigui=20Kess=C3=A9=20Emmanuel?= Date: Sun, 4 Aug 2024 02:36:16 +0100 Subject: [PATCH] :technologist: Set the color scheme type based on the mode type --- packages/colorwind/src/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/colorwind/src/config.ts b/packages/colorwind/src/config.ts index 71ec072..cb282f1 100644 --- a/packages/colorwind/src/config.ts +++ b/packages/colorwind/src/config.ts @@ -46,7 +46,7 @@ export type Mode = Modes[number]; export type Colors = typeof colors; export type ColorName = keyof Colors; export type ColorValue = Colors[ColorName]; -export type ColorScheme = { light: string; dark: string }; +export type ColorScheme = { [key in Mode]: string }; export type Utilities = typeof utilities; export type UtilityName = keyof Utilities; export type UtilityValue = Utilities[UtilityName];