Skip to content

feat(theme): replace Forge Midnight/Daylight with canonical Solarized - #194

Merged
github-actions[bot] merged 1 commit into
mainfrom
theme/solarized-palette
Aug 3, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
theme/solarized-palette

Conversation

@mohitranka

Copy link
Copy Markdown
Contributor

Summary

  • Replaces the built-in forge-midnight (dark) and forge-daylight (light) TUI themes with Solarized Dark and Solarized Light, using Ethan Schoonover's published canonical hex values (8 base tones + 8 accent hues) and the standard vim-solarized syntax-role mapping.
  • Renames THEME_FORGE_MIDNIGHT/THEME_FORGE_DAYLIGHT → THEME_SOLARIZED_DARK/THEME_SOLARIZED_LIGHT across the codebase; removes the old ids with no back-compat alias (existing configs pointing at forge-midnight/forge-daylight will fall back to the default theme).
  • dark/light/system shorthand aliases in [tui] theme still resolve to the new ids.
  • Reworks the WCAG-AA contrast regression tests: canonical Solarized hues don't clear strict 4.5:1 contrast on several elevated-surface pairings (a known, documented trait of the palette), so the tests now pin the actual achieved ratio per role/background pair as a floor, with inline rationale, rather than enforcing a uniform threshold that authentic Solarized can't meet.

Test plan

  • cargo test -p forge-config -p forge-tui theme (52 tests passing)
  • cargo fmt --all -- --check

Swaps the two built-in TUI themes for Solarized Dark and Solarized
Light, built from Ethan Schoonover's published base16/accent hex
values and the standard vim-solarized syntax-role mapping. The old
forge-midnight/forge-daylight ids, constants, and files are removed
with no back-compat alias.

The WCAG-AA contrast test now pins the actual achieved ratio per
role/background pair instead of a blanket 4.5:1 floor, since several
canonical Solarized hues fall short of strict WCAG AA on elevated
surfaces that Solarized itself doesn't define — a known trait of the
palette, kept here in favor of authentic colors over deviating from
the published values.
@github-actions
github-actions Bot enabled auto-merge (squash) August 3, 2026 07:04
@github-actions
github-actions Bot merged commit e2177cd into main Aug 3, 2026
7 checks passed
mohitranka added a commit that referenced this pull request Aug 21, 2026
…#194)

Swaps the two built-in TUI themes for Solarized Dark and Solarized
Light, built from Ethan Schoonover's published base16/accent hex
values and the standard vim-solarized syntax-role mapping. The old
forge-midnight/forge-daylight ids, constants, and files are removed
with no back-compat alias.

The WCAG-AA contrast test now pins the actual achieved ratio per
role/background pair instead of a blanket 4.5:1 floor, since several
canonical Solarized hues fall short of strict WCAG AA on elevated
surfaces that Solarized itself doesn't define — a known trait of the
palette, kept here in favor of authentic colors over deviating from
the published values.
mohitranka added a commit that referenced this pull request Sep 11, 2026
…#194)

Swaps the two built-in TUI themes for Solarized Dark and Solarized
Light, built from Ethan Schoonover's published base16/accent hex
values and the standard vim-solarized syntax-role mapping. The old
forge-midnight/forge-daylight ids, constants, and files are removed
with no back-compat alias.

The WCAG-AA contrast test now pins the actual achieved ratio per
role/background pair instead of a blanket 4.5:1 floor, since several
canonical Solarized hues fall short of strict WCAG AA on elevated
surfaces that Solarized itself doesn't define — a known trait of the
palette, kept here in favor of authentic colors over deviating from
the published values.
mohitranka added a commit that referenced this pull request Sep 11, 2026
…#194)

Swaps the two built-in TUI themes for Solarized Dark and Solarized
Light, built from Ethan Schoonover's published base16/accent hex
values and the standard vim-solarized syntax-role mapping. The old
forge-midnight/forge-daylight ids, constants, and files are removed
with no back-compat alias.

The WCAG-AA contrast test now pins the actual achieved ratio per
role/background pair instead of a blanket 4.5:1 floor, since several
canonical Solarized hues fall short of strict WCAG AA on elevated
surfaces that Solarized itself doesn't define — a known trait of the
palette, kept here in favor of authentic colors over deviating from
the published values.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant