Desaturate dark theme background colors#37056
Conversation
Desaturate all structural grey colors in the dark theme from blue-grey (H≈210°, S≈12-15%) to near-monochrome (H=220°, S=6%), using #18191b as the page background color. All colors preserve their original lightness values. Semantic colors (primary accent, named colors, diff, alerts, badges, brand) are unchanged. Co-Authored-By: Claude (Opus 4.6) <noreply@anthropic.com>
Recompute all monochrome colors using OKLCH color space instead of HSL to preserve perceptual lightness accurately. Use OKLCH H=250° (cool blue) with C=0.0034 to maintain the cool-neutral character (B >= G >= R) rather than the warm tint that OKLCH H=8.6° from #18191b produced. Co-Authored-By: Claude (Opus 4.6) <noreply@anthropic.com>
Replace near-monochrome colors with full monochrome (OKLCH C=0, pure R=G=B grey). Perceptual lightness preserved via OKLCH L from the original blue-grey values. Body color is now #1f1f1f (perceptual lightness match for original #1b1f23). Co-Authored-By: Claude (Opus 4.6) <noreply@anthropic.com>
Revert to the original HSL(220°, 6%) near-monochrome approach with #18191b as body color. Co-Authored-By: Claude (Opus 4.6) <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
Desaturates the Gitea dark theme’s structural greys toward a near-monochrome palette and aligns the page background with MDN’s #18191b.
Changes:
- Updated secondary/neutral grey ramp variables (including alpha variants) to reduce saturation.
- Adjusted target-based UI surfaces (body, box, menu/card, hover/active, shadows) to the new neutral greys.
- Tweaked console-related foreground/background/border/link colors to match the new neutral palette.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Could you add a UI comparison? before --> after? |
|
It's basically just -10% absolute saturation with a slight hue shift on the backgrounds, but I can provide more screenshots. |
|
suggestion: Add a new theme called oled or smth to be completely black? |
|
No, I don't think it's warranted to introduce another theme now especially because the saturation change here isn't too intrusive imho. The current light/dark themes are supposed to be near-inversions in their coloring. A "soft dark" theme variant like GitHub has can be considered to be added later. |
* origin/main: Update JS dependencies and misc tweaks (go-gitea#37064) Redirect to the only OAuth2 provider when no other login methods and fix various problems (go-gitea#36901) Show workflow link (go-gitea#37070) Remove leftover `webpackChunkName` comments from codeeditor (go-gitea#37062) Update Go dependencies (go-gitea#36781) Add webhook name field to improve webhook identification (go-gitea#37025) (go-gitea#37040) Upgrade `go-git` to v5.17.2 (go-gitea#37060) Replace Monaco with CodeMirror (go-gitea#36764) Update Combine method to treat warnings as failures and adjust tests (go-gitea#37048) Raise minimum Node.js version to 22.18.0 (go-gitea#37058) Update golangci-lint to v2.11.4 (go-gitea#37059) Upgrade `golang.org/x/image` to v0.38.0 (go-gitea#37054) # Conflicts: # web_src/css/themes/theme-gitea-dark.css
|
Comparison screenshot added to #37056 (comment). |
Co-Authored-By: Claude (Opus 4.6) <noreply@anthropic.com>
|
Changed body background from |
* main: Fix NuGet package upload error handling (go-gitea#37074) Desaturate dark theme background colors (go-gitea#37056) Update JS dependencies and misc tweaks (go-gitea#37064) Redirect to the only OAuth2 provider when no other login methods and fix various problems (go-gitea#36901) Show workflow link (go-gitea#37070) Remove leftover `webpackChunkName` comments from codeeditor (go-gitea#37062) Update Go dependencies (go-gitea#36781) Add webhook name field to improve webhook identification (go-gitea#37025) (go-gitea#37040) Upgrade `go-git` to v5.17.2 (go-gitea#37060) Replace Monaco with CodeMirror (go-gitea#36764) Update Combine method to treat warnings as failures and adjust tests (go-gitea#37048) Raise minimum Node.js version to 22.18.0 (go-gitea#37058) Update golangci-lint to v2.11.4 (go-gitea#37059) Upgrade `golang.org/x/image` to v0.38.0 (go-gitea#37054) Increase e2e test timeouts on CI to fix flaky tests (go-gitea#37053) Refactor "org teams" page and help new users to "add member" to an org (go-gitea#37051)
* origin/main: (192 commits) Fix NuGet package upload error handling (go-gitea#37074) Desaturate dark theme background colors (go-gitea#37056) Update JS dependencies and misc tweaks (go-gitea#37064) Redirect to the only OAuth2 provider when no other login methods and fix various problems (go-gitea#36901) Show workflow link (go-gitea#37070) Remove leftover `webpackChunkName` comments from codeeditor (go-gitea#37062) Update Go dependencies (go-gitea#36781) Add webhook name field to improve webhook identification (go-gitea#37025) (go-gitea#37040) Upgrade `go-git` to v5.17.2 (go-gitea#37060) Replace Monaco with CodeMirror (go-gitea#36764) Update Combine method to treat warnings as failures and adjust tests (go-gitea#37048) Raise minimum Node.js version to 22.18.0 (go-gitea#37058) Update golangci-lint to v2.11.4 (go-gitea#37059) Upgrade `golang.org/x/image` to v0.38.0 (go-gitea#37054) Increase e2e test timeouts on CI to fix flaky tests (go-gitea#37053) Refactor "org teams" page and help new users to "add member" to an org (go-gitea#37051) Refactor issue sidebar and fix various problems (go-gitea#37045) Add tests for pull request's content_version in API (go-gitea#37044) Enable concurrent vitest execution (go-gitea#36998) Fix theme discovery and Vite dev server in dev mode (go-gitea#37033) ... # Conflicts: # templates/user/dashboard/feeds.tmpl
Desaturate all structural grey colors in the dark theme from blue-grey (H≈210°, S≈12-15%) to near-monochrome (H=220°, S=6%), using
#1e1f20as the page background color.All colors preserve their original HSL lightness values. Semantic colors (primary accent, named colors, diff, alerts, badges, brand) are unchanged.
Motivation: The previous blue tint looked bad (kind of green-ish) on certain screens and I think a near-monochrome color is more neutral because its closer to being an inversion of the light theme.
Before and after:
This PR was written with the help of Claude Opus 4.6