Skip to content

Commit

Permalink
favor: bundle Source Code Pro + better fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
sparecycles committed Sep 14, 2024
1 parent 3e0cd70 commit f6cfc44
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 2 deletions.
7 changes: 7 additions & 0 deletions packages/favor/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/favor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
},
"dependencies": {
"@codemirror/lang-json": "^6.0.1",
"@fontsource/source-code-pro": "^5.1.0",
"@solid-primitives/storage": "^4.1.0",
"better-sqlite3": "^11.1.2",
"codemirror": "^6.0.1",
Expand Down
1 change: 1 addition & 0 deletions packages/favor/src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { ErrorBoundary, Show } from "solid-js";
import Main from "./app/main.tsx";
import LoadingSplash from "./components/LoadingSplash.tsx";
import { manifest } from "./signals/pardon-config.ts";
import "@fontsource/source-code-pro";

function PageLoader(props) {
return (
Expand Down
2 changes: 1 addition & 1 deletion packages/favor/src/components/codemirror/CodeMirror.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export default function CodeMirror(props: CodeMirrorProps) {
".cm-content": {
caretColor: "var(--text1)",
fontSize: props.text ?? "12pt",
fontFamily: '"Source Code Pro", "Monaco", "monospace"',
fontFamily: '"Source Code Pro", "Consolas", monospace',
},
}),
);
Expand Down
2 changes: 1 addition & 1 deletion packages/favor/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
plugins: [corvu],
theme: {
fontFamily: {
mono: ["Source Code Pro", "Monaco", "monospace"],
mono: ["Source Code Pro", "Consolas", "monospace"],
sans: [
"Source Code Pro",
"-apple-system",
Expand Down

0 comments on commit f6cfc44

Please sign in to comment.