Make zinc accent monochrome and respect accentForeground

This commit is contained in:
Mohamed Boudra
2026-05-19 10:01:39 +07:00
parent 501dcf373b
commit 339ca2fc83
5 changed files with 26 additions and 18 deletions
+5 -3
View File
@@ -235,6 +235,7 @@ interface DarkThemeConfig {
borderAccent: string;
accent: string;
accentBright: string;
accentForeground?: string;
destructive: string;
}
@@ -277,7 +278,7 @@ function buildDarkSemanticColors(tint: DarkThemeConfig) {
accent: tint.accent,
accentBright: tint.accentBright,
accentForeground: "#ffffff",
accentForeground: tint.accentForeground ?? "#ffffff",
destructive: tint.destructive,
destructiveForeground: "#ffffff",
@@ -352,8 +353,9 @@ const zincDarkColors = buildDarkSemanticColors({
scrollbarHandle: "#71717a",
border: "#27272a",
borderAccent: "#303036",
accent: "#20744A",
accentBright: "#7ccba0",
accent: "#e4e4e7",
accentBright: "#fafafa",
accentForeground: "#18181b", // monochrome zinc accent is near-white — needs dark text
destructive: "#c44a4a", // neutral red, hue 0 — clearly red without screaming
});