From 577a976e013f350ba69fe7f5b7311fc5154e6f5b Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Tue, 5 Sep 2023 11:30:18 +0500 Subject: [PATCH] theme: derive shade color from accent color --- packages/theme/src/theme-engine/utils.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/theme/src/theme-engine/utils.ts b/packages/theme/src/theme-engine/utils.ts index 2256079ca..0d25d2ef8 100644 --- a/packages/theme/src/theme-engine/utils.ts +++ b/packages/theme/src/theme-engine/utils.ts @@ -40,7 +40,9 @@ export function getPreviewColors(theme: ThemeDefinition): PreviewColors { return { navigationMenu: { - shade: navigationMenu?.primary?.shade || primary.shade, + shade: deriveShadeColor( + tc(navigationMenu?.primary?.accent || primary.accent) + ), accent: navigationMenu?.primary?.accent || primary.accent, background: navigationMenu?.primary?.background || primary.background, icon: navigationMenu?.primary?.icon || primary.icon