Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

theme: derive shade color from accent color

Abdullah Atta577a976e013f
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