Skip to content

fix(ui): fix desktop theme background seeds, light contrast, and token typos - #50517

Merged
Hona merged 6 commits into
anomalyco:v2from
gotenksIN:oc2-desktop-theme-fixes
Sep 24, 2026
Merged

Hona merged 6 commits into
anomalyco:v2from
gotenksIN:oc2-desktop-theme-fixes

Conversation

@gotenksIN

Copy link
Copy Markdown

Issue for this PR

Closes #50500

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

This PR fixes background seed defects, contrast collapses in light mode, and syntax typos across desktop themes and the theme calculation helper:

  1. OC-2 (oc-2.json):

    • Added missing # prefix to "icon-weak-base": "#C7C7C7" (line 28) so CSS variables resolve correctly at computed-value time, fixing missing SVG icon shadows and logo fills.
  2. Catppuccin (catppuccin.json):

    • Replaced Mocha Rosewater (#f5e0dc) with official Latte Base (#eff1f5) in light.palette.neutral, eliminating the pink/flesh wash across desktop surfaces.
    • Aligned Latte diff colors (diffAdd: #40a02b, diffDelete: #d20f39), syntax constant (#fe640b), and comments (#6c6f85).
    • Fixed Mocha dark palette typos for yellow warning (#f9e2af) and green success (#a6e3a1).
  3. Catppuccin Frappé & Macchiato (catppuccin-frappe.json, catppuccin-macchiato.json):

    • Replaced duplicated dark palettes and dark overrides in their light variants with official Catppuccin Latte tokens to resolve severe contrast collapse (from ~2.0:1 to 9.34:1) in desktop light mode.
    • In Frappé dark variant, corrected Frappé Blue (#8da4e2 -> #8caaee) and comment (#949cb8 -> #949cbb) hex typos.
  4. Kanagawa (kanagawa.json):

    • Replaced dark Wave syntax overrides in the light variant with official Kanagawa Lotus tokens (#6f894e, #cc6d00, #624c83, #4d699b, #b35b79, #8a8980) to resolve low-contrast syntax text against the light Lotus background.
  5. Luminance Formula (color.ts):

    • In contrastRatio(), updated the green luminance weight from 0.587 to the standard ITU-R BT.709 coefficient 0.7152 for accurate WCAG relative luminance calculations.

How did you verify your code works?

Screenshots / recordings

Before (Catppuccin Light pink wash):

Before - Catppuccin Latte rendering with pink background in OpenCode Desktop

After (Fixed with official Latte Base #eff1f5):

After - Catppuccin Latte rendering with correct neutral background in OpenCode Desktop

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

AI Assistant Disclosure: This pull request was prepared with assistance from OpenCode (GPT-6 Astra).

Add missing '#' prefix to icon-weak-base in oc-2.json to ensure valid
CSS variable resolution at computed-value time, fixing missing SVG icon
shadows and logo fills.

Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
Fix the light neutral background seed by replacing Mocha Rosewater
(#f5e0dc) with Latte Base (#eff1f5), removing the unintended pink tint
on desktop neutral surfaces. Align diff colors, syntax constants, and
comments with official Latte tokens, and fix green and yellow typos in
the Mocha dark palette.

Source: https://catppuccin.com/palette/
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
Replace duplicated dark palette and dark overrides in the light variant
with official Catppuccin Latte tokens to resolve severe contrast
collapse (from 2.05:1 to 9.34:1). Correct Frappe Blue and comment hex
typos in the dark variant.

Source: https://catppuccin.com/palette/
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
Replace duplicated dark palette and dark overrides in the light variant
with official Catppuccin Latte tokens to resolve severe contrast
collapse (from 1.95:1 to 9.34:1) in desktop light mode.

Source: https://catppuccin.com/palette/
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
Replace dark Wave syntax overrides in Kanagawa's light variant with
official Kanagawa Lotus tokens to resolve low-contrast syntax text
against the light background.

Source: https://github.com/rebelot/kanagawa.nvim
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
Update green luminance weight from 0.587 to the standard ITU-R BT.709
coefficient 0.7152 in contrastRatio() to ensure accurate WCAG relative
luminance calculation.

Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@Hona
Hona merged commit b486652 into anomalyco:v2 Sep 24, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants