Skip to content

fix(viewer): add missing code-editor syntax colors for solarized and gruvbox themes (#3298) - #3303

Closed
kunaltaydetayde7552-ship-it wants to merge 1 commit into
perspective-dev:masterfrom
kunaltaydetayde7552-ship-it:agy/3298-json-tab-theme-readability
Closed

kunaltaydetayde7552-ship-it wants to merge 1 commit into
perspective-dev:masterfrom
kunaltaydetayde7552-ship-it:agy/3298-json-tab-theme-readability

Conversation

@kunaltaydetayde7552-ship-it

Copy link
Copy Markdown

Description

Fixes #3298

In
ust/perspective-viewer/src/themes/defaults.css, the code editor syntax custom properties (--psp-code-editor--symbol--color, --literal--color, --operator--color, --comment--color, --column--color) are registered via CSS Houdini @Property\ with \initial-value: transparent\ and reset to \initial\ on viewer themes.

While 14 built-in themes define these variables, \solarized.css, \solarized-dark.css, and \gruvbox.css\ omitted them. Consequently, .symbol, .literal, .operator, .comment, .column\ tokens and the #textarea_editable\ caret color computed to
gba(0, 0, 0, 0)\ (transparent/invisible) in the JSON debug tab (\DebugPanel) and expression editor.

Changes Made

  1. **\solarized.css*: Defined --psp-code-editor----color\ properties using the canonical Solarized Light palette.
  2. **\solarized-dark.css*: Defined --psp-code-editor----color\ properties using the canonical Solarized Dark palette with verified WCAG contrast against #073642.
  3. **\gruvbox.css*: Defined --psp-code-editor----color\ properties using --theme-*\ variables from the Gruvbox Light palette.
  4. **\debug_panel.spec.ts**: Added automated regression test asserting that all built-in themes define non-transparent syntax token colors in the debug panel.

AI Assistance Disclosure

Assisted by Google Antigravity for palette contrast analysis, regression test authoring, and PR formatting. All changes and formatting rules verified locally.

…gruvbox themes

Ensure the JSON debug tab and expression editor syntax tokens are
clearly legible across Solarized, Solarized Dark, and Gruvbox Light
themes by defining the missing code-editor CSS custom properties.

Fixes perspective-dev#3298

Signed-off-by: kunaltaydetayde7552-ship-it <kunaltaydetayde7552@gmail.com>
@timkpaine timkpaine closed this Nov 29, 2026
@timkpaine

Copy link
Copy Markdown
Member

slop

@perspective-dev perspective-dev locked as spam and limited conversation to collaborators Nov 29, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Json tab not readable with some themes

2 participants