Replace tint treatments

merged…
osebo41d ago

I’d love to try replacing the tint treatments with other styles

6 repliesoldestnewest
Osebotfable-5-141d ago

"Tint treatments" in the vals theme today = three things in app/globals.css: status badges on tinted fills (--green-fill / --blue-fill / --red-fill / --yellow-fill / --merged-fill, plus .badge.public), the green-tinted reply-count bubble (--bubble-base), and Claude's reply cards washed in --agent.

Plan:

  1. Mock up three replacement styles side by side (static HTML on the real globals.css, light + dark): A. outlined (hairline + coloured text, no fill), B. dot (plain mono label with a coloured status dot; agent posts get a thin left rule instead of a wash; bubble becomes a bare ink outline), C. solid (status-coloured fill with inverse text).
  2. Implement the one that reads best as the default on this branch (I'll lean towards B, it's the furthest from a tint and the quietest), keep the tokens so lib/terminal-themes.ts palettes still work, and post before/after shots of all three so you can pick a different one.
Osebotfable-5-141d agothreadide@773d693

Implemented B, dot on a neutral chip as the replacement for all three tint treatments (commit 773d693 on thread/1d2462d8).

Push failed: the sandbox's GitHub token had already expired when the run started (401 on /user), so the commit is local only. Re-running / re-authorising the thread will push it and open the PR; the PR description is already written.

What changed (app/globals.css, plus the matching keys in lib/terminal-themes.ts):

  • Badges: every badge is the same --fill grey chip (the drawing the PR pills, model badge and Merge button already use). A status badge adds a 5px square in the status ink before the label (--dot + ::before), the same mark as the nav / live dot. The label stays --text-2, so colour is only the dot. done stays the one solid chip. The plain badge (task, diff, original post) drops its hairline so all chips match; say if you want that frame back.
  • Reply bubble: --fill / --fill-hover with --text-2 digits instead of the green tint.
  • Claude's replies: no wash at all now, just open (no frame, no fill). Human posts keep the hairline, so Claude's are the unframed ones with the solid green avatar.
  • Armed Stop / Merge keep their red / indigo ring and ink on the plain grey chip.
  • Tokens --green/blue/red/yellow/merged-fill, --agent, --agent-solid, --bubble-base/hover are deleted from :root, both dark blocks and paletteVars, so terminal palettes need nothing new.

The other two candidates are in the attached comparison. If you'd rather have one of them, it's a swap inside the badge block:

A. outlined (hairline + label in the status ink, bubble outlined green with an outlined tail, agent post = 2px green rule at the left):

.badge { background: none; box-shadow: inset 0 0 0 1px var(--border-strong); }
.badge.running { color: var(--blue); box-shadow: inset 0 0 0 1px currentColor; } /* …same per status */
.comment-count { background: none; box-shadow: inset 0 0 0 1px var(--green); color: var(--green); }
.comment-count::after { border: 0; width: 7px; height: 7px; right: 4px; bottom: -4px; background: var(--bg); border-right: 1px solid var(--green); border-bottom: 1px solid var(--green); transform: rotate(45deg); }
.post.agent .card { position: relative; } .post.agent .card::before { content: ""; position: absolute; left: -1px; top: 10px; bottom: 10px; width: 2px; background: var(--accent); }

C. solid (status ink as the fill, page colour as the text; bubble solid green):

.badge.running { background: var(--blue); color: var(--bg); } /* …same per status */
.comment-count { --bubble: var(--green); color: var(--bg); }

Verified: tsc --noEmit clean; static mockup on the real stylesheet screenshotted light + dark at 430px and 390px. Not run in the app (needs Postgres + OAuth).

Before (tinted fills) vs after (neutral chips + status dots), light and dark, static mockup on the real globals.css
Before (tinted fills) vs after (neutral chips + status dots), light and dark, static mockup on the real globals.css
The three candidates explored (A outlined, B dot on neutral chip, C solid) next to the current tints, light mode
The three candidates explored (A outlined, B dot on neutral chip, C solid) next to the current tints, light mode
The same three candidates in dark mode
The same three candidates in dark mode
oseboasked Osebot41d ago

I like the solid direction

Osebotfable-5-141d ago

Going with C, solid. Note: the earlier commit 773d693 never reached GitHub (expired token) and this sandbox started fresh from main, so I'm re-doing the change from scratch, this time straight to the solid style rather than the dot chip.

Plan:

  1. app/globals.css: status badges fill with the status ink (--blue running, --yellow waiting, --red failed / CI failed, --merged merged, --green ready, public) with page-coloured text; done stays --accent solid; plain badges (task, diff, model) stay neutral chips. Reply-count bubble solid green with page-coloured digits. Claude's reply cards lose the --agent wash (open, no frame). Armed Stop / Merge become solid red / indigo.
  2. Remove the *-fill, --agent*, --bubble-* tokens from :root, both dark blocks and lib/terminal-themes.ts paletteVars.
  3. Mockup on the real stylesheet, light + dark screenshots, tsc, commit, push (token is valid this time).
Osebotfable-5-141d agothreadide@9a4c087

Solid status cues are in: commit 9a4c087 on thread/1d2462d8, pushed this time (token was valid), PR description written so the PR opens when the run ends.

What changed (app/globals.css + matching keys in lib/terminal-themes.ts):

  • Status badges (running, waiting, failed, merged, ready, CI failed, public): the status ink is the fill, the page colour (--bg) is the label. One shared rule keyed on a --status custom property; each status class only sets --status. done keeps --accent / --on-accent, so it still reads as the "finished" chip. Plain badges (task, diff, model, PR state text) stay the framed grey --fill chip, so only status carries colour.
  • Reply-count bubble: solid green with page-coloured digits; hover mixes 15% ink into the green (darker in light, lighter in dark) via color-mix, no extra token.
  • Claude's replies: no wash at all, on the thread page and the Last-reply cards. Unframed as before; the solid green avatar is the cue.
  • Armed Stop / Merge: solid red / indigo with page-coloured text instead of ring + tint.
  • Tokens --green/blue/red/yellow/merged-fill, --agent, --agent-solid, --bubble-base/hover are removed from :root, both dark blocks and paletteVars, so terminal palettes need nothing new.

Verified: tsc --noEmit clean; static mockup on the real stylesheet screenshotted light + dark (attached, before on the left of each pair). Not run in the app (needs Postgres + OAuth).

If the yellow "waiting" chip feels too heavy next to the others, the easy knob is .badge.waiting_on_human { --status: … }; everything else follows the same one-line pattern.

Before (tinted fills) vs after (solid status cues), light and dark; static mockup on the real globals.css at 400px
Before (tinted fills) vs after (solid status cues), light and dark; static mockup on the real globals.css at 400px
Osebot41d ago

Merged threadide #101 by @osebo (merge, d71f39a).