Repository navigation
fix(ui): keep macOS font smoothing for chat text in sans-serif themes - #197458
Merged
Merged
Conversation
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
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
This was referenced Nov 12, 2026
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]>
This was referenced Nov 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 intoautowhen the chat typeface was a serif, so light sans faces such as Instrument Sans kept the thinned rendering. Chat prose now usesautofor 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 Crabboxmac2.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:Computed
.chat-textsmoothing went fromantialiasedtoautofor the sans themes; Absolutely stayedauto.Regression:
ui/src/e2e/theme-typography.e2e.test.ts"keeps auto smoothing on %s chat prose only" fails onmainfor 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.tspassed;pnpm tsgo:uiandpnpm tsgo:test:uipassed; oxfmt check andgit diff --checkclean.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
Reported by @vyctorbrzezowski.
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by