From c0ed629a697c64d0819842ca368c175c3fc3ca11 Mon Sep 17 00:00:00 2001 From: PostHog Code Date: Sat, 25 Apr 2026 21:22:21 +0000 Subject: [PATCH] =?UTF-8?q?fix(code):=20stop=20scaling=20italics=201.18?= =?UTF-8?q?=C3=97=20in=20markdown?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Radix Themes ships --em-font-size-adjust: 1.18 (and the same for Quote) to make Times New Roman italic visually match the surrounding sans body. Since we override --em-font-family / --quote-font-family to Open Runde, the compensation no longer applies and just makes italics render ~18% larger than neighbouring text — the "hilariously large" italics seen in agent chat. Set both adjustments to 1. Generated-By: PostHog Code Task-Id: ad6f03b1-a226-42a3-99df-47cb2ed0a51f --- apps/code/src/renderer/styles/globals.css | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/apps/code/src/renderer/styles/globals.css b/apps/code/src/renderer/styles/globals.css index 5f5ad9801..3a7e73326 100644 --- a/apps/code/src/renderer/styles/globals.css +++ b/apps/code/src/renderer/styles/globals.css @@ -321,6 +321,15 @@ --quote-font-family: var(--font-sans); --code-font-family: var(--font-mono); + /* + * Radix's defaults assume Times New Roman italic (smaller x-height) and + * scale Em / Quote up by 1.18× to compensate. Since we render them in + * Open Runde — same metrics as body text — that compensation makes + * italics conspicuously oversized. Disable the adjustment. + */ + --em-font-size-adjust: 1; + --quote-font-size-adjust: 1; + /* Font weights — Berkeley Mono provides 400/700, JetBrains Mono fills 300/500/600 */ --font-weight-light: 300; --font-weight-regular: 400;