Uh oh!
There was an error while loading. Please reload this page.
feat(web): add UI and code font family settings - #4377
Conversation
Let users pick UI and mono fonts from General settings via presets or a custom locally installed font name, with live Aa preview tiles. Co-authored-by: Cursor <cursoragent@cursor.com>
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want fixes drafted automatically? Bugbot Autofix can create code changes for findings. A team admin can enable Autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit faa3230. Configure here.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
ApprovabilityVerdict: Needs human review New feature adding UI and code font family settings with new components, schema fields, and CSS variable application. New user-facing features warrant human review regardless of implementation quality. You can customize Macroscope's approvability policy. Learn more. |
Apply font prefs on pair/unauth routes, route markdown pre/code through --font-mono, and seed Custom with the current font so blur doesn't wipe it. Co-authored-by: Cursor <cursoragent@cursor.com>
harssha6
commented
Jul 23, 2026
Addressed the review findings:
|
t3dotgg
commented
Aug 23, 2026
Note 🤖 GPT-5.6 Sol responding on behalf of Theo Closing this PR after an automated pass over open pull requests. Configurable application and code font families already shipped in #5103. |

Adds General settings for UI and code font families (presets + custom local font names), with live Aa preview tiles. Fixes#4376.
Before
Settings → General had Theme / Glass opacity / Word wrap, but no way to change
--font-sansor--font-mono. Agent replies and code blocks always used the hardcoded stacks.After
What changed
uiFontFamily/codeFontFamily(empty = bundled default):root, same pattern as glass opacitybodynow usesvar(--font-sans)so UI/chat text actually follows the settingHappy to drop the
docs/pr-media/screenshots from the tree after review if preferred.Test plan
packages/contracts/src/settings.test.ts,apps/web/src/fontPreferences.test.tsMade with Cursor
Note
Add UI and code font family settings to the General settings panel
uiFontFamilyandcodeFontFamilyfields toClientSettingsSchemaandClientSettingsPatchin settings.ts, with a max length of 80 characters.--font-sans,--font-mono).var(--font-sans)andvar(--font-mono)so user preferences take effect globally.FontAppearanceSynccomponent in __root.tsx that syncs font settings to CSS variables on every settings change.FontFamilySettingControlandFontFamilyPreviewTilecomponents in SettingsPanels.tsx, exposing preset and custom font controls for both UI and code fonts in the General settings panel.Macroscope summarized 2bb74d9.