Skip to content

Commit c0ed629

Browse files
author
PostHog Code
committed
fix(code): stop scaling italics 1.18× in markdown
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
1 parent d7b8cbb commit c0ed629

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

apps/code/src/renderer/styles/globals.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,15 @@
321321
--quote-font-family: var(--font-sans);
322322
--code-font-family: var(--font-mono);
323323

324+
/*
325+
* Radix's defaults assume Times New Roman italic (smaller x-height) and
326+
* scale Em / Quote up by 1.18× to compensate. Since we render them in
327+
* Open Runde — same metrics as body text — that compensation makes
328+
* italics conspicuously oversized. Disable the adjustment.
329+
*/
330+
--em-font-size-adjust: 1;
331+
--quote-font-size-adjust: 1;
332+
324333
/* Font weights — Berkeley Mono provides 400/700, JetBrains Mono fills 300/500/600 */
325334
--font-weight-light: 300;
326335
--font-weight-regular: 400;

0 commit comments

Comments
 (0)