feat(fonts.css): update body and mono fonts to use system stacks

This commit is contained in:
Cory Dransfeldt 2025-06-19 12:07:04 -07:00
parent ad5754f78f
commit 520e1253ea
No known key found for this signature in database
12 changed files with 16 additions and 72 deletions

18
package-lock.json generated
View file

@ -1,12 +1,12 @@
{ {
"name": "coryd.dev", "name": "coryd.dev",
"version": "10.7.5", "version": "10.8.5",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "coryd.dev", "name": "coryd.dev",
"version": "10.7.5", "version": "10.8.5",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"minisearch": "^7.1.2", "minisearch": "^7.1.2",
@ -38,7 +38,7 @@
"prettier": "3.5.3", "prettier": "3.5.3",
"rimraf": "^6.0.1", "rimraf": "^6.0.1",
"sql-formatter": "15.6.5", "sql-formatter": "15.6.5",
"terser": "^5.43.0", "terser": "^5.43.1",
"truncate-html": "^1.2.2" "truncate-html": "^1.2.2"
}, },
"engines": { "engines": {
@ -1681,9 +1681,9 @@
"license": "MIT" "license": "MIT"
}, },
"node_modules/electron-to-chromium": { "node_modules/electron-to-chromium": {
"version": "1.5.170", "version": "1.5.171",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.170.tgz", "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.171.tgz",
"integrity": "sha512-GP+M7aeluQo9uAyiTCxgIj/j+PrWhMlY7LFVj8prlsPljd0Fdg9AprlfUi+OCSFWy9Y5/2D/Jrj9HS8Z4rpKWA==", "integrity": "sha512-scWpzXEJEMrGJa4Y6m/tVotb0WuvNmasv3wWVzUAeCgKU0ToFOhUW6Z+xWnRQANMYGxN4ngJXIThgBJOqzVPCQ==",
"dev": true, "dev": true,
"license": "ISC" "license": "ISC"
}, },
@ -5564,9 +5564,9 @@
} }
}, },
"node_modules/terser": { "node_modules/terser": {
"version": "5.43.0", "version": "5.43.1",
"resolved": "https://registry.npmjs.org/terser/-/terser-5.43.0.tgz", "resolved": "https://registry.npmjs.org/terser/-/terser-5.43.1.tgz",
"integrity": "sha512-CqNNxKSGKSZCunSvwKLTs8u8sGGlp27sxNZ4quGh0QeNuyHM0JSEM/clM9Mf4zUp6J+tO2gUXhgXT2YMMkwfKQ==", "integrity": "sha512-+6erLbBm0+LROX2sPXlUYx/ux5PyE9K/a92Wrt6oA+WDAoFTdpHE5tCYCI5PNzq2y8df4rA+QgHLJuR4jNymsg==",
"dev": true, "dev": true,
"license": "BSD-2-Clause", "license": "BSD-2-Clause",
"dependencies": { "dependencies": {

View file

@ -1,6 +1,6 @@
{ {
"name": "coryd.dev", "name": "coryd.dev",
"version": "10.7.5", "version": "10.8.5",
"description": "The source for my personal site. Built using 11ty (and other tools).", "description": "The source for my personal site. Built using 11ty (and other tools).",
"type": "module", "type": "module",
"engines": { "engines": {
@ -67,7 +67,7 @@
"prettier": "3.5.3", "prettier": "3.5.3",
"rimraf": "^6.0.1", "rimraf": "^6.0.1",
"sql-formatter": "15.6.5", "sql-formatter": "15.6.5",
"terser": "^5.43.0", "terser": "^5.43.1",
"truncate-html": "^1.2.2" "truncate-html": "^1.2.2"
} }
} }

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -3,9 +3,6 @@ const staticAssets = [
"/assets/styles/index.css", "/assets/styles/index.css",
"/assets/styles/noscript.css", "/assets/styles/noscript.css",
"/assets/fonts/sg.woff2", "/assets/fonts/sg.woff2",
"/assets/fonts/dm.woff2",
"/assets/fonts/dmi.woff2",
"/assets/fonts/ml.woff2",
"/assets/scripts/index.js", "/assets/scripts/index.js",
"/assets/scripts/components/select-pagination.js" "/assets/scripts/components/select-pagination.js"
]; ];

View file

@ -5,43 +5,3 @@
font-style: normal; font-style: normal;
font-display: swap; font-display: swap;
} }
@font-face {
font-family: "DM Sans";
src: url("/assets/fonts/dm-regular.woff2") format("woff2");
font-weight: 400;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: "DM Sans";
src: url("/assets/fonts/dm-bold.woff2") format("woff2");
font-weight: 700;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: "DM Sans";
src: url("/assets/fonts/dm-regular-italic.woff2") format("woff2");
font-weight: 400;
font-style: italic;
font-display: optional;
}
@font-face {
font-family: "DM Sans";
src: url("/assets/fonts/dm-bold-italic.woff2") format("woff2");
font-weight: 700;
font-style: italic;
font-display: optional;
}
@font-face {
font-family: "MonoLisa";
src: url("/assets/fonts/ml.woff2") format("woff2");
font-weight: 400;
font-style: normal;
font-display: swap;
}

View file

@ -71,10 +71,11 @@
--border-gray: 1px solid var(--gray-light); --border-gray: 1px solid var(--gray-light);
/* fonts */ /* fonts */
--font-body: "DM Sans", Helvetica Neue, Helvetica, Arial, system-ui, sans-serif; --font-body:
-apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, Adwaita Sans,
Cantarell, Ubuntu, roboto, noto, helvetica, arial, sans-serif;
--font-heading: "Space Grotesk", "Arial Black", "Arial Bold", Gadget, sans-serif; --font-heading: "Space Grotesk", "Arial Black", "Arial Bold", Gadget, sans-serif;
--font-code: --font-code: Menlo, Consolas, Monaco, Adwaita Mono, Liberation Mono, Lucida Console, monospace;
"MonoLisa", SFMono-Regular, Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace;
/* text */ /* text */
--font-size-xs: 0.7rem; --font-size-xs: 0.7rem;

View file

@ -11,7 +11,7 @@ pre {
word-spacing: normal; word-spacing: normal;
word-break: normal; word-break: normal;
word-wrap: normal; word-wrap: normal;
line-height: var(--line-height-md); line-height: var(--line-height-base);
tab-size: 2; tab-size: 2;
hyphens: none; hyphens: none;
} }

View file

@ -9,20 +9,6 @@
type="font/woff2" type="font/woff2"
crossorigin="anonymous" crossorigin="anonymous"
> >
<link
rel="preload"
href="/assets/fonts/dm-regular.woff2"
as="font"
type="font/woff2"
crossorigin="anonymous"
>
<link
rel="preload"
href="/assets/fonts/dm-bold.woff2"
as="font"
type="font/woff2"
crossorigin="anonymous"
>
<noscript> <noscript>
<link rel="stylesheet" href="/assets/styles/noscript.css?v={% appVersion %}" type="text/css"> <link rel="stylesheet" href="/assets/styles/noscript.css?v={% appVersion %}" type="text/css">
</noscript> </noscript>