From 296aa01b461af5146612cd26cc115c1d3e5ed4ae Mon Sep 17 00:00:00 2001 From: Tim Kleinschmidt Date: Sun, 4 Jan 2026 21:45:56 +0100 Subject: [PATCH] opencode: brighten default text colors (#2100) Using base09 for diff hunk headers and base0A for markdown block quotes made neutral UI elements look urgent. Markdown code blocks also reused the default text color as a background, reducing contrast. Return these components to neutral backgrounds instead: keep diff hunk headers on base03, block quotes on base03/base01, and code blocks on base01 so warnings stay on base0A and urgency cues remain meaningful. Link: https://github.com/nix-community/stylix/pull/2100 Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com> Approved-by: NAHO <90870942+trueNAHO@users.noreply.github.com> Tested-by: Mirza Arnaut Approved-by: Mirza Arnaut (cherry picked from commit b135edbdd403896d1ef507934c045f716deb5609) --- modules/opencode/hm.nix | 52 ++++++++++++++++++++--------------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/modules/opencode/hm.nix b/modules/opencode/hm.nix index ce83cfe2..3d983e2f 100644 --- a/modules/opencode/hm.nix +++ b/modules/opencode/hm.nix @@ -12,7 +12,7 @@ mkTarget { themes.${theme} = { theme = { accent = { - dark = colors.withHashtag.base07; + dark = colors.withHashtag.base0F; light = colors.withHashtag.base07; }; background = { @@ -72,7 +72,7 @@ mkTarget { light = colors.withHashtag.base03; }; diffLineNumber = { - dark = colors.withHashtag.base02; + dark = colors.withHashtag.base03; light = colors.withHashtag.base04; }; diffRemoved = { @@ -97,26 +97,26 @@ mkTarget { }; markdownBlockQuote = { dark = colors.withHashtag.base03; - light = colors.withHashtag.base03; + light = colors.withHashtag.base01; }; markdownCode = { dark = colors.withHashtag.base0B; light = colors.withHashtag.base0B; }; markdownCodeBlock = { - dark = colors.withHashtag.base04; + dark = colors.withHashtag.base01; light = colors.withHashtag.base00; }; markdownEmph = { - dark = colors.withHashtag.base09; + dark = colors.withHashtag.base0A; light = colors.withHashtag.base09; }; markdownHeading = { - dark = colors.withHashtag.base0C; + dark = colors.withHashtag.base0E; light = colors.withHashtag.base0F; }; markdownHorizontalRule = { - dark = colors.withHashtag.base03; + dark = colors.withHashtag.base04; light = colors.withHashtag.base03; }; markdownImage = { @@ -124,7 +124,7 @@ mkTarget { light = colors.withHashtag.base0D; }; markdownImageText = { - dark = colors.withHashtag.base07; + dark = colors.withHashtag.base0C; light = colors.withHashtag.base07; }; markdownLink = { @@ -132,31 +132,31 @@ mkTarget { light = colors.withHashtag.base0D; }; markdownLinkText = { - dark = colors.withHashtag.base07; + dark = colors.withHashtag.base0C; light = colors.withHashtag.base07; }; markdownListEnumeration = { - dark = colors.withHashtag.base07; + dark = colors.withHashtag.base0C; light = colors.withHashtag.base07; }; markdownListItem = { - dark = colors.withHashtag.base0C; + dark = colors.withHashtag.base0D; light = colors.withHashtag.base0F; }; markdownStrong = { - dark = colors.withHashtag.base0A; + dark = colors.withHashtag.base09; light = colors.withHashtag.base0A; }; markdownText = { - dark = colors.withHashtag.base04; + dark = colors.withHashtag.base05; light = colors.withHashtag.base00; }; primary = { - dark = colors.withHashtag.base0C; + dark = colors.withHashtag.base0D; light = colors.withHashtag.base0F; }; secondary = { - dark = colors.withHashtag.base0D; + dark = colors.withHashtag.base0E; light = colors.withHashtag.base0D; }; success = { @@ -164,29 +164,29 @@ mkTarget { light = colors.withHashtag.base0B; }; syntaxComment = { - dark = colors.withHashtag.base03; + dark = colors.withHashtag.base04; light = colors.withHashtag.base03; }; syntaxFunction = { - dark = colors.withHashtag.base0C; + dark = colors.withHashtag.base0D; light = colors.withHashtag.base0C; }; syntaxKeyword = { - dark = colors.withHashtag.base0D; + dark = colors.withHashtag.base0E; light = colors.withHashtag.base0D; }; syntaxNumber = { - dark = colors.withHashtag.base0E; + dark = colors.withHashtag.base09; light = colors.withHashtag.base0E; }; syntaxOperator = { - dark = colors.withHashtag.base0D; + dark = colors.withHashtag.base0C; light = colors.withHashtag.base0D; }; syntaxPunctuation = { - dark = colors.withHashtag.base04; + dark = colors.withHashtag.base05; light = colors.withHashtag.base00; }; syntaxString = { @@ -194,7 +194,7 @@ mkTarget { light = colors.withHashtag.base0B; }; syntaxType = { - dark = colors.withHashtag.base07; + dark = colors.withHashtag.base0A; light = colors.withHashtag.base07; }; syntaxVariable = { @@ -202,16 +202,16 @@ mkTarget { light = colors.withHashtag.base07; }; text = { - dark = colors.withHashtag.base04; + dark = colors.withHashtag.base05; light = colors.withHashtag.base00; }; textMuted = { - dark = colors.withHashtag.base03; + dark = colors.withHashtag.base04; light = colors.withHashtag.base01; }; warning = { - dark = colors.withHashtag.base09; - light = colors.withHashtag.base09; + dark = colors.withHashtag.base0A; + light = colors.withHashtag.base0A; }; }; };