From 35cda06cbf5af5f056eb96662b2e9861d92d5136 Mon Sep 17 00:00:00 2001 From: Tanishq Dubey Date: Mon, 9 Sep 2024 18:48:47 -0400 Subject: [PATCH] Fix mutated schemes --- app/utils/colorSchemes.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/utils/colorSchemes.ts b/app/utils/colorSchemes.ts index be0e850..d8e28c3 100644 --- a/app/utils/colorSchemes.ts +++ b/app/utils/colorSchemes.ts @@ -152,6 +152,8 @@ function generateSchemeFromGeneticAlgorithm(likedSchemes: ColorScheme[], dislike }); newScheme.name = generateCreativeName({ ...newScheme.colors.normal, ...newScheme.colors.bright }); + newScheme.colors.primary.background = newScheme.colors.normal.black; + newScheme.colors.primary.foreground = newScheme.colors.bright.white; return newScheme; }