chore(web): use geist mono as fallback font for berkeley mono#248
Conversation
Uses a prebuild script to detect if Berkeley Mono font file exists. Falls back to Geist Mono from next/font/google for open source users and git worktree setups where the font submodule isn't initialized.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
This PR is being reviewed by Cursor Bugbot
Details
You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.
To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.
| "private": true, | ||
| "scripts": { | ||
| "generate-fonts": "tsx scripts/generate-fonts.ts", | ||
| "predev": "bun run generate-fonts", |
There was a problem hiding this comment.
Script gen-types accidentally removed from package.json
High Severity
The gen-types script was accidentally deleted from package.json during this change. This script runs tsx scripts/build-types-meta.ts to generate .types/types-meta.json, which is imported by multiple components (type-debug.tsx, type-diff.tsx, type-reference.tsx, type-signature.tsx, type-table-auto.tsx). Without this script entry, developers cannot regenerate the type metadata file, breaking the type documentation system.
Merge activity
|



Font Fallback System for Berkeley Mono
Uses a prebuild script to detect if Berkeley Mono font file exists.
Falls back to Geist Mono from next/font/google for open source users
and git worktree setups where the font submodule isn't initialized.
Note
Low Risk
Low risk: changes are limited to font configuration and build/dev scripts, with the main risk being unexpected font output if the generated
lib/fonts.tsdiffers from expectations.Overview
Adds a font fallback system so the app uses local Berkeley Mono when available but falls back to
Geist_Monofromnext/font/googlewhen the Berkeley Mono font file isn’t present.Introduces
scripts/generate-fonts.tsand wires it intopredev/prebuildto generatelib/fonts.tsdynamically, updates the mono CSS variable from--font-berkeley-monoto--font-mono, and keeps aberkeleyMonoexport as a backwards-compatible alias.Written by Cursor Bugbot for commit f91bd8a. This will update automatically on new commits. Configure here.