GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(ui): calibrate GUI themes for WCAG 2.2 and add 6 new themes (opencode#66521, #66528) by Hona · Pull Request #1296 · anomalyco/opencode-rune

Conversation

@Hona

@Hona Hona commented Nov 26, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Port official GUI theme updates from anomalyco/opencode dev (opencode#66521 and opencode#66528):

  • WCAG 2.2 contrast and elevation calibration (opencode#66521, 5e000543a6): regenerated apps/desktop/assets/themes.json from the calibrated OKLCH 13-step neutral scale, contrast-calibrated hue ramps, WCAG 2.2 foreground hierarchy (text-base >= 7:1, text-muted >= 4.5:1, text-faint >= 3:1, text-accent / state badges / contrast controls >= 4.5:1, border-focus >= 3:1), and v1CodeAndDiffBridge (aligning code blocks background-stronger to background-bg-layer-01 and contrast-checking syntax colors on non-default themes).
  • Six new bundled themes (opencode#66528, 04eccc3012): added alabaster (Alabaster), cyberdream (Cyberdream), modus (Modus), oxocarbon (Oxocarbon), poimandres (Poimandres), and vscode (VS Code) in alphabetical picker order after oc-2 (OpenCode): 36 -> 42 themes total.
  • apps/desktop/tools/themes.ts: updated token resolution to merge { ...v1, ...v2 } matching official's :root CSS cascade (packages/ui/src/theme/context.tsx) so unprefixed v1CodeAndDiffBridge overrides from resolveThemeVariantV2 take precedence over v1 defaults while keeping oc-2 untouched, and included the calibrated theme tokens read directly by the UI (blue-400, blue-700, blue-1100, grey-500, grey-700, red-900, yellow-900, icon-weak-base, icon-warning-base).

Note on packages/ui/src/theme/context.tsx root background update in opencode#66521: our desktop shell already fills the window background and caption color from p.bg_deep (background-bg-deep), so non-default themes pick up the calibrated root background automatically.

Verification

  • CI: run 45763334613 on exact head 8516e08350 - guardrails, build-macos, build-windows (x64), build-windows (arm64), and build-linux (x64) passed (Linux arm64 skipped).
  • Static checks: all 42 themes in apps/desktop/assets/themes.json parse cleanly, every value is a valid #rrggbbaa hex or an existing alpha-* palette entry in apps/desktop/assets/theme.json, all existing oc-2 tokens are unchanged, and all 41 non-default themes x 2 modes (82 variants) pass every WCAG 2.2 contrast and background-stronger == background-bg-layer-01 check from packages/ui/src/theme/v2/resolve.test.ts.
  • Headless verification (Windows x64 CI build from run 45763334613, fixture, no server; before = c1360881ed): all 5 cases passed:
    1. Theme picker lists all 42 themes: Settings > Appearance > Theme picker lists 42 items (OpenCode first, rest alphabetical), including all 6 new themes (Alabaster, Cyberdream, Modus, Oxocarbon, Poimandres, VS Code). Before: 36 items, none of the 6 present.
    2. New light themes render with calibrated palette: Alabaster light bg_deep #f1f1f1ff, bg_base #f7f7f7ff (before: #fafafaff / #ffffffff oc-2 fallback); Modus light bg_deep #f9f9f9ff, bg_base #ffffffff.
    3. New dark themes render with calibrated palette: Cyberdream #0b0d0eff / #16181aff (code #232527ff); Oxocarbon #0a0b0bff / #161617ff (code #232324ff); Poimandres #10121aff / #1b1e28ff (code #272a35ff); VS Code #131313ff / #1f1f1fff (code #2b2b2bff).
    4. Calibrated non-default dark themes and elevated code blocks: Everforest #21282dff / #2d353bff / code #353d43ff (before: #1a2228ff / #1c252bff / code #1a2228ff); Dracula #11121bff / #1d1e28ff / code #292a34ff (before: #12131cff / #151720ff / code #12131cff); Tokyo Night #0f0f19ff / #1a1b26ff / code #262733ff (before: #10111aff / #13141eff / code #10111aff).
    5. Default oc-2 theme unchanged: bit-identical PNG renders vs c1360881ed (oc-2 dark: 83320/83320 bytes; oc-2 light: 83442/83442 bytes).

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Hona
feat(ui): calibrate GUI themes for WCAG 2.2 and add 6 new themes (ope…
8516e08
…ncode#66521, #66528)
@Hona
Hona marked this pull request as ready for review November 26, 2026 06:17
@Hona
Hona merged commit 16fe80d into dev Nov 26, 2026
7 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@Hona
Hona deleted the upstream-g/themes-wcag-and-new branch November 26, 2026 06:17
@Hona Hona mentioned this pull request Nov 26, 2026
docs(upstream-sync): ported runs of 26 Nov afternoon (UP-218 live, UP-238, UP-241, UP-244, UP-247, UP-248, #1284) #1302
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@Hona
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.