Skip to content

Fix CodeMirror theme colors and add Catppuccin variants - #2568

Merged
bajrangCoder merged 1 commit into
mainfrom
fix/codemirror-theme-palettes
Aug 2, 2026
Merged

Fix CodeMirror theme colors and add Catppuccin variants#2568
bajrangCoder merged 1 commit into
mainfrom
fix/codemirror-theme-palettes

Conversation

@bajrangCoder

Copy link
Copy Markdown
Member

Summary

  • Fix VS Code Dark plain-text foreground and align its palette with VS Code Dark Modern
  • Update the existing GitHub Dark theme to the current GitHub Dark Default palette
  • Refresh GitHub Light, Solarized Dark, Solarized Light, and Tokyo Night colors
  • Add Catppuccin Latte, Frappé, Macchiato, and Mocha themes
  • Remove invalid color values assigned to CodeMirror fontStyle
  • Add regression tests for theme palettes, registration, and CodeMirror extension construction

@greptile-apps

greptile-apps Bot commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

Refreshes built-in CodeMirror theme palettes and syntax highlighting.

  • Adds and registers Catppuccin Latte, Frappé, Macchiato, and Mocha.
  • Updates GitHub, Solarized, Tokyo Night, and VS Code Dark colors.
  • Removes invalid fontStyle color assignments.
  • Adds regression coverage for palettes, registration, and extension construction.

Confidence Score: 5/5

The pull request appears safe to merge, with no concrete functional or security failures identified.

Theme identifiers resolve consistently through the existing registry, the new extensions conform to CodeMirror’s extension model, and the updated styles use valid highlighting properties.

Important Files Changed

Filename Overview
src/cm/themes/catppuccin.js Defines four Catppuccin palettes and valid reusable CodeMirror theme and highlighting extensions.
src/cm/themes/index.js Registers all Catppuccin variants consistently with the existing normalized theme registry.
src/cm/themes/githubDark.js Updates the GitHub Dark palette and token mappings without changing the theme contract.
src/cm/themes/githubLight.js Updates the GitHub Light palette and token mappings without changing the theme contract.
src/cm/themes/solarizedDark.js Refreshes Solarized Dark colors and separates selection-match styling.
src/cm/themes/solarizedLight.js Refreshes Solarized Light colors and separates selection-match styling.
src/cm/themes/tokyoNight.js Updates Tokyo Night colors and syntax-token mappings.
src/cm/themes/vscodeDark.js Corrects the plain-text foreground and updates supporting UI colors and tag highlighting.
tests/unit/editorThemes.test.js Adds regression tests for canonical palettes, Catppuccin registration, and construction of every registered theme.

Reviews (1): Last reviewed commit: "fix(editor): correct CodeMirror theme co..." | Re-trigger Greptile

@bajrangCoder
bajrangCoder added this pull request to the merge queue Aug 2, 2026
Merged via the queue into main with commit 6016e86 Aug 2, 2026
11 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in The Code Board - Acode Aug 2, 2026
@bajrangCoder
bajrangCoder deleted the fix/codemirror-theme-palettes branch August 2, 2026 07:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant