Repository navigation
fix(studio): antialias text like the design references - #2199
Merged
Merged
Conversation
Studio left -webkit-font-smoothing at its default (auto). On macOS, Chromium then renders light text on the dark surfaces with font smoothing that thickens the stems, so 400-weight Inter reads as if it were bold next to the design references. Both references opt into grayscale antialiasing on the body: - mecatl-prototypes apps/web/index.html:22 (stack/08-tooling): <body class="text-sm antialiased"> - SEP toolhive-cloud-ui src/app/layout.tsx:55 (and src/app/global-error.tsx:24): body className includes antialiased Studio and the prototype already match on font file (Inter Variable 5.3.0, latin wght woff2), weight, size, letter-spacing, line-height, colour and variation settings. With antialiased applied, the Settings > Memory label renders pixel-identical to the prototype at 1x. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
kantord
approved these changes
Oct 8, 2026
Merged
2 tasks
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.
Summary
Studio text renders heavier than the design references, as if bold. The cause is font smoothing: Studio never sets
-webkit-font-smoothing, so it staysauto. On macOS, Chromium then smooths light-on-dark text in a way that thickens the stems. Both design references setantialiasedon the body. This PR addsantialiasedto the existingbodyrule inapps/web/src/styles.css.Out of scope: the prototype also sets
text-sm(14px) on<body>, while Studio's body stays at 16px. Changing that is a broader decision about the type scale, so this PR leaves it alone. The compared labels are already 14px in both apps.Evidence
What the references set
stacklok/mecatl-prototypes,stack/08-tooling):apps/web/index.html:22has<body class="text-sm antialiased">.stacklok-enterprise-platform,main):enterprise/toolhive-cloud-ui/src/app/layout.tsx:55putsantialiasedin the body className.src/app/global-error.tsx:24does the same.Computed styles for the "Project memory" label (Settings > Memory)
Neither
text-renderingnorfont-synthesischanges stroke weight here.optimizeLegibilitycontrols kerning and ligatures. Synthesis never triggers because the variable font covers weight 400. Font smoothing is the only difference that affects how thick the text looks.Rendering (Playwright, Chromium on macOS, dark scheme, 1440x900). Toggling only
body.style.webkitFontSmoothingon the same page:antialiased, the Studio label band is pixel-identical (0 differing pixels) to the prototype's.Before (top) and after (bottom), 1x, zoomed 3x:
Studio before (top), prototype (middle), Studio after (bottom), 1x, zoomed 3x:
At 2x, before:
At 2x, after:
Verification
Node 26.10.0, pnpm 12.4.2:
task studio:install: exit 0task studio:lint: exit 0task studio:typecheck: exit 0task studio:test: exit 0 (server 182/182, web 651/651). The first run hit one unrelated flake, a socket hang-up inglobal-search.test.tsx. It passed on a clean re-run.🤖 Generated with Claude Code