From da66abf791729b9a5e3fa073de0bffa158a517bd Mon Sep 17 00:00:00 2001 From: Aaryan Khandelwal Date: Wed, 28 Jun 2023 18:44:00 +0530 Subject: [PATCH] fix: color generator function logic --- apps/app/components/core/custom-theme-selector.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/app/components/core/custom-theme-selector.tsx b/apps/app/components/core/custom-theme-selector.tsx index 5bc25b138..b79fc8eb4 100644 --- a/apps/app/components/core/custom-theme-selector.tsx +++ b/apps/app/components/core/custom-theme-selector.tsx @@ -56,10 +56,10 @@ export const CustomThemeSelector: React.FC = ({ preLoadedData }) => { if (shade > 500) { let decimalValue = 0.1; - if (shade === 600) decimalValue = 0.1; - else if (shade === 700) decimalValue = 0.2; - else if (shade === 800) decimalValue = 0.3; - else if (shade === 900) decimalValue = 0.4; + if (shade === 600) decimalValue = 0.9; + else if (shade === 700) decimalValue = 0.8; + else if (shade === 800) decimalValue = 0.7; + else if (shade === 900) decimalValue = 0.6; const newR = Math.ceil(r * decimalValue); const newG = Math.ceil(g * decimalValue);