feat(client): add a sidebar-specific accent colour for dark mode

The sidebar selected-icon colour was sharing primary.main, which read too dark in dark mode. Introduce palette.sidebar.accent (brand green in light mode, a lighter green in dark mode) and route NavItem through it so primary stays brand-green for buttons and the rest of the UI.
This commit is contained in:
gorkem-bwl committed 2026-04-26 01:55:17 -04:00
1 parent 1bff81c6bb
commit 11ea7dcb3b
3 files changed
+17 -2

No files matched your search

+7
View File
@@ -15,6 +15,7 @@ export const colors = {
gray900: "#151518",
gray850: "#1c1c21",
brandGreen: "#13715B",
brandGreenLight: "#4DAF94",
};
export const lightPalette = {
@@ -24,6 +25,9 @@ export const lightPalette = {
secondary: {
main: colors.gray200,
},
sidebar: {
accent: colors.brandGreen,
},
};
export const darkPalette = {
@@ -37,4 +41,7 @@ export const darkPalette = {
default: colors.gray900,
paper: colors.gray850,
},
sidebar: {
accent: colors.brandGreenLight,
},
};