[PR #13720] feat: Add GeistMono Nerd Font to available mono font options #14789

Closed
opened 2026-02-16 18:19:33 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/13720

State: closed
Merged: Yes


https://github.com/user-attachments/assets/1670de15-0a76-4957-ab57-57bfe65ea3b5

Summary

The GeistMono Nerd Font files were already present in the repository (added in a previous commit) but were never actually registered in the font system, making them unavailable for users to select.

This PR adds GeistMono as an available mono font option across the app.

Changes

  • Registered GeistMono in packages/ui/src/components/font.tsx with Regular and Bold variants
  • Added font CSS definition in packages/app/src/context/settings.tsx
  • Added dropdown option in packages/app/src/components/settings-general.tsx
  • Added translations for all 17 supported locales

Motivation

I myself am quite fond of the Geist Mono font and would love to use it in OpenCode. Since the font files were already present in the repo, this was just a matter of wiring them up properly.

Testing

  • TypeScript type checking passes
  • GeistMono now appears in the font dropdown settings
  • Font renders correctly when selected

Note: The GeistMono Nerd Font files (GeistMonoNerdFontMono-Regular.woff2, GeistMonoNerdFontMono-Medium.woff2, GeistMonoNerdFontMono-Bold.woff2) were already present in packages/ui/src/assets/fonts/ from a previous commit but were never integrated into the font selection system.


Closes https://github.com/anomalyco/opencode/issues/13729

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/13720 **State:** closed **Merged:** Yes --- https://github.com/user-attachments/assets/1670de15-0a76-4957-ab57-57bfe65ea3b5 ## Summary The GeistMono Nerd Font files were already present in the repository (added in a previous commit) but were never actually registered in the font system, making them unavailable for users to select. This PR adds GeistMono as an available mono font option across the app. ## Changes - Registered GeistMono in `packages/ui/src/components/font.tsx` with Regular and Bold variants - Added font CSS definition in `packages/app/src/context/settings.tsx` - Added dropdown option in `packages/app/src/components/settings-general.tsx` - Added translations for all 17 supported locales ## Motivation I myself am quite fond of the Geist Mono font and would love to use it in OpenCode. Since the font files were already present in the repo, this was just a matter of wiring them up properly. ## Testing - [x] TypeScript type checking passes - [x] GeistMono now appears in the font dropdown settings - [x] Font renders correctly when selected --- **Note:** The GeistMono Nerd Font files (`GeistMonoNerdFontMono-Regular.woff2`, `GeistMonoNerdFontMono-Medium.woff2`, `GeistMonoNerdFontMono-Bold.woff2`) were already present in `packages/ui/src/assets/fonts/` from a previous commit but were never integrated into the font selection system. --- Closes https://github.com/anomalyco/opencode/issues/13729
yindo added the pull-request label 2026-02-16 18:19:33 -05:00
yindo closed this issue 2026-02-16 18:19:33 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14789