1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-17 15:25:30 -04:00

geist fonts are now on google

This commit is contained in:
2024-11-22 10:34:55 -05:00
parent 0542937db5
commit 8f987be75e
6 changed files with 17 additions and 33 deletions

View File

@@ -1,9 +1,7 @@
import localFont from "next/font/local";
import { Geist_Mono as GeistMonoLoader } from "next/font/google";
const GeistMono = localFont({
src: "../../../../node_modules/geist/dist/fonts/geist-mono/GeistMono-Variable.woff2",
weight: "100 900",
style: "normal",
const GeistMono = GeistMonoLoader({
subsets: ["latin"],
display: "swap",
fallback: [
// https://github.com/system-fonts/modern-font-stacks#monospace-code

View File

@@ -1,9 +1,7 @@
import localFont from "next/font/local";
import { Geist as GeistSansLoader } from "next/font/google";
const GeistSans = localFont({
src: "../../../../node_modules/geist/dist/fonts/geist-sans/Geist-Variable.woff2",
weight: "100 900",
style: "normal",
const GeistSans = GeistSansLoader({
subsets: ["latin"],
display: "swap",
fallback: [
// https://github.com/system-fonts/modern-font-stacks#system-ui