fix: load fonts the right way
Some checks are pending
deploy / deploy (push) Waiting to run
generate / generate (push) Waiting to run
publish / publish (push) Waiting to run
publish / publish-tauri (map[host:macos-latest target:aarch64-apple-darwin]) (push) Waiting to run
publish / publish-tauri (map[host:macos-latest target:x86_64-apple-darwin]) (push) Waiting to run
publish / publish-tauri (map[host:ubuntu-24.04 target:x86_64-unknown-linux-gnu]) (push) Waiting to run
publish / publish-tauri (map[host:windows-latest target:x86_64-pc-windows-msvc]) (push) Waiting to run
test / test (push) Waiting to run
Update Nix Hashes / update (push) Waiting to run

This commit is contained in:
Adam 2025-12-11 06:51:39 -06:00
parent d7b8dce6a7
commit dfdd1c9b20
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75
3 changed files with 2 additions and 8 deletions

View file

@ -3,6 +3,7 @@ import { Router } from "@solidjs/router"
import { FileRoutes } from "@solidjs/start/router"
import { Suspense } from "solid-js"
import { Favicon } from "@opencode-ai/ui/favicon"
import { Font } from "@opencode-ai/ui/font"
import "@ibm/plex/css/ibm-plex.css"
import "./app.css"
@ -15,6 +16,7 @@ export default function App() {
<Title>opencode</Title>
<Meta name="description" content="OpenCode - The open source coding agent." />
<Favicon />
<Font />
<Suspense>{props.children}</Suspense>
</MetaProvider>
)}

View file

@ -1,11 +1,3 @@
@font-face {
font-family: "Berkeley Mono";
src: url("/fonts/berkley-mono.woff2") format("woff2");
font-weight: 400;
font-style: normal;
font-display: swap;
}
body {
--font-size-2xs: 0.6875rem;
--font-size-xs: 0.75rem;