Skip to content

Commit c56aff3

Browse files
committed
feat: load JetBrainsMono font for improved typography in PhoneScene
1 parent 1e5ce2b commit c56aff3

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

demo-video/src/PhoneScene.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,18 @@ import {
1111
useVideoConfig,
1212
} from "remotion";
1313
import { loadFont } from "@remotion/google-fonts/Inter";
14+
import { loadFont as loadMono } from "@remotion/google-fonts/JetBrainsMono";
1415
import { PhoneMockup } from "./PhoneMockup";
1516

1617
const { fontFamily } = loadFont("normal", {
1718
weights: ["400", "600", "700", "800"],
1819
subsets: ["latin"],
1920
});
2021

21-
const monoFont = "'CaskaydiaCove Nerd Font Mono', 'CaskaydiaCove NF Mono', monospace";
22+
const { fontFamily: monoFont } = loadMono("normal", {
23+
weights: ["400", "700"],
24+
subsets: ["latin"],
25+
});
2226

2327
const GRADIENT_BG =
2428
"radial-gradient(ellipse at 50% 45%, #1a1a3e 0%, #0f0c29 50%, #0a0a1a 100%)";

0 commit comments

Comments
 (0)