Skip to content

fix(ui): keep macOS font smoothing for chat text in sans-serif themes - #197458

Merged
vyctorbrzezowski merged 2 commits into
mainfrom
openclaw/glow-langoustine-3
Nov 12, 2026
Merged

vyctorbrzezowski merged 2 commits into
mainfrom
openclaw/glow-langoustine-3

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes: chat text renders with lighter, thinner strokes on macOS in the default Claw theme and other sans-serif or monospace themes.

User Impact

On macOS browsers, chat prose in Claw, Knot, Tide and other non-serif themes now renders with normal macOS stroke weight, matching how serif themes such as Absolutely already rendered. Windows and Linux are unaffected because browsers ignore this property there. App chrome (sidebar, labels, composer controls) keeps its current rendering. No settings, schema or migration changes.

Why This Change Was Made

The app body sets -webkit-font-smoothing: antialiased, which turns off macOS stem darkening. Chat prose only opted back into auto when the chat typeface was a serif, so light sans faces such as Instrument Sans kept the thinned rendering. Chat prose now uses auto for every typeface, which also removes the runtime helper and its CSS variable. A slightly heavier Instrument Sans weight was considered and not needed once smoothing was fixed.

Evidence

  • Real macOS rendering: production builds of main (bc56f78) and this change rendered in Playwright Chromium on an AWS Crabbox mac2.metal (macOS 14.8), using the Control UI E2E mock Gateway with a dense synthetic transcript. Text ink (luminance distance from the background, whole transcript, 2x) after vs before:

    Theme Dark Light
    Claw (Instrument Sans) +13.1% +10.4%
    Knot (Geist) +16.0% +9.8%
    Tide (IBM Plex Sans) +16.3% +10.5%
    Absolutely (Lora, control) 0 px changed 0 px changed

    Computed .chat-text smoothing went from antialiased to auto for the sans themes; Absolutely stayed auto.

  • Regression: ui/src/e2e/theme-typography.e2e.test.ts "keeps auto smoothing on %s chat prose only" fails on main for Claw (expected 'antialiased' to be 'auto') and passes with this change; Absolutely passes on both.

  • node scripts/run-vitest.mjs run ui/src/app/theme-fonts.test.ts passed; pnpm tsgo:ui and pnpm tsgo:test:ui passed; oxfmt check and git diff --check clean.

  • Local autoreview (Codex gpt-6.1-sol, branch mode, base bc56f78, max priority P2): scoped-clean, no findings.

  • The existing Claw dark before/after comparison is embedded below. These images were recovered through the work session’s Copy image control; the quantitative measurements above refer to the original captures.

Claw dark: existing macOS comparison

Before After
Claw dark before Claw dark after

Reported by @vyctorbrzezowski.

Work sessions

Linked for team reference; these sessions aren’t public.

Worked on by

roboclaw-bot and others added 2 commits November 12, 2026 01:44
Chat prose now keeps macOS stem darkening for every chat typeface instead of
only serif faces. Claw (Instrument Sans) and other sans/mono themes inherited
the app-wide antialiased smoothing, which thins light strokes at chat size.
App chrome keeps the existing body smoothing.

Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 96d2ebce-073d-49c1-9257-a9a382d19012
@clawsweeper

clawsweeper Bot commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@roboclaw-bot roboclaw-bot changed the title fix(ui): chat text looks thin and harsh in sans themes on macOS fix(ui): keep macOS font smoothing for chat text in sans-serif themes Nov 12, 2026
@vyctorbrzezowski
vyctorbrzezowski merged commit 2b04ce7 into main Nov 12, 2026
105 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the openclaw/glow-langoustine-3 branch November 12, 2026 02:08
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 12, 2026
…openclaw#197458)

Use automatic macOS font smoothing for chat prose in every typeface. Keep app chrome rendering unchanged and remove the serif-only runtime helper.

Co-authored-by: vyctorbrzezowski <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants