Skip to content
Source
Sign inSign up
pingdotgg/t3code

Settings: choose UI and code font families (presets + custom local fonts) #4376

Closedharssha6(GitHub profile, opens in a new tab) opened this issue 0 comments

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I am describing a concrete problem or use case, not just a vague idea.

Related: #418 asks for broader theming/UI customization including fonts. This issue is intentionally narrower: font family only, in General settings.

Area

apps/web (also applies to desktop, which hosts the same web UI)

Problem or use case

--font-sans and --font-mono are hardcoded in CSS. Theme and glass opacity are already configurable in Settings → General, but there is no way to change:

  • the UI / chat / agent-reply sans font
  • the mono font used for code blocks, diffs, and file previews

Zoom (Cmd +/-/0) already covers size. Family is the missing piece.

Proposed solution

Add two client-local settings in Settings → General (same pattern as Theme / Glass opacity / Word wrap):

  1. UI font (--font-sans) — affects chrome and agent reply text
  2. Code font (--font-mono) — affects code blocks, diffs, file previews, etc.

Each control has:

  • a small preset list (Default / System / Geist / Inter or JetBrains)
  • a Custom option that accepts a local font family name (CSS font-family), so installed fonts like Geist / Geist Mono work when present and fall back cleanly when not
  • a live Aa preview tile

Persist via existing ClientSettings and apply with document.documentElement.style.setProperty(...), matching the current glass-opacity sync.

Shipping default stays the current bundled fonts (DM Sans + existing mono stack). Geist/Geist Mono are selectable presets that resolve from locally installed fonts.

Why this matters

People already customize fonts in every other coding tool. T3 Code already has the CSS-variable and client-settings plumbing; exposing family is a small, high-leverage settings addition without inventing a full theme system.

Smallest useful scope

  • General settings rows for UI font + Code font
  • presets + custom local name + Aa preview
  • client settings schema + persistence
  • root CSS variable sync
  • before/after screenshots

Out of scope: new Appearance tab, font size controls, bundling Geist, mobile parity, syntax theme packs.

Contribution

  • I would be open to helping implement this.
  1. juliusmarminge closed this

Sign in to join this conversation.