Skip to content

fix(terminal): one flat surface, no lighter ring around the pane - #233

Merged
JeffreyJYZ merged 1 commit into
mainfrom
fix/terminal-flat-surface
Nov 22, 2026
Merged

JeffreyJYZ merged 1 commit into
mainfrom
fix/terminal-flat-surface

Conversation

@jyzbot

@jyzbot jyzbot commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator

The terminal pane read as a rectangle with a lighter ring around it. Two causes, and the second is why a CSS-only fix would have looked done and changed nothing:

  1. the frame used --panel while the xterm body set background: var(--bg), so two shades met at the seam;
  2. xterm's palette carried its own background value and applied it inline to .xterm-viewport — a third shade, written from JS, that no stylesheet rule could override.

The terminal body, host, screen and viewport now paint --panel, the chrome and status seams are gone, and xtermTheme() reads --panel off the document and overrides only that one palette field. Palette values and the global tokens are untouched.

Side-docked variants already read --panel, and there is no separate exited layer here — .tab.exited is opacity only, so no second shade was reintroduced.

New flatSurface.test.ts pins it: no --bg in the terminal sheets, no chrome/status border, every layer and the side variant on --panel, and the theme's background equal to the token. Red-then-green, bun test 1442 pass, gate 11/11, unstyled-classes 0.

The visual result needs a launch, which I did not do.

@vercel

vercel Bot commented Nov 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
quarry-docs Building Building Preview Nov 22, 2026 3:31am UTC

@JeffreyJYZ
JeffreyJYZ merged commit 341d120 into main Nov 22, 2026
5 of 6 checks passed
@JeffreyJYZ
JeffreyJYZ deleted the fix/terminal-flat-surface branch November 22, 2026 03:31
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.

2 participants