1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-17 19:05:32 -04:00

switch monospace font to Source Code Pro

This commit is contained in:
2022-11-12 13:09:32 -05:00
parent d297a26628
commit 279688b89f
6 changed files with 10 additions and 7 deletions

View File

@@ -6,7 +6,7 @@ import hexToRgba from "./utils/hex-to-rgba";
import normalizeStyles from "./utils/normalize";
// web fonts
import { Inter, RobotoMono } from "./utils/fonts";
import { Inter, SourceCodePro } from "./utils/fonts";
// https://stitches.dev/docs/typescript#type-a-css-object
export type CSS = Stitches.CSS<typeof stitchesConfig>;
@@ -24,7 +24,7 @@ export const {
theme: {
fonts: {
sans: `${Inter.style.fontFamily}, sans-serif`,
mono: `${RobotoMono.style.fontFamily}, monospace`,
mono: `${SourceCodePro.style.fontFamily}, monospace`,
},
colors: {

View File

@@ -1,6 +1,6 @@
import {
Inter as InterLoader,
Roboto_Mono as RobotoMonoLoader,
Source_Code_Pro as SourceCodeProLoader,
Comic_Neue as ComicNeueLoader,
} from "@next/font/google";
@@ -13,7 +13,7 @@ export const Inter = InterLoader({
preload: true,
});
export const RobotoMono = RobotoMonoLoader({
export const SourceCodePro = SourceCodeProLoader({
weight: "variable",
display: "fallback",
preload: true,