Dough Git

commit

aaa

commit
0fc5dbab679568a428a960a2abd3a87bf0b4cfb8
author
Clove Twilight <[email protected]>
date
2026-08-23 21:17

diff --git a/src/app/layout.tsx b/src/app/layout.tsx
index 3076582..467164b 100644
--- a/src/app/layout.tsx
+++ b/src/app/layout.tsx
@@ -77,12 +77,6 @@ export default function RootLayout({
           href="https://m.doughmination.gay"
           crossOrigin=""
         />
-        <link rel="preconnect" href="https://fonts.googleapis.com" />
-        <link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="" />
-        <link
-          href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap"
-          rel="stylesheet"
-        />
       </head>
       <body>
         <Providers>
diff --git a/src/styles/global.css.ts b/src/styles/global.css.ts
index 02418f2..2870f26 100644
--- a/src/styles/global.css.ts
+++ b/src/styles/global.css.ts
@@ -7,14 +7,35 @@
  * app's src/css/main.css + fonts.css to vanilla-extract globalStyle calls.
  */
 
-import { globalStyle } from "@vanilla-extract/css";
+import { globalFontFace, globalStyle } from "@vanilla-extract/css";
 import { vars } from "./theme.css";
 
 /* ============================================================================
-   FONTS — IBM Plex Mono, loaded via the Google Fonts <link> in layout.tsx
-   (the terminal/clunky redesign replaced the old self-hosted Comic Code face)
+   FONTS — Comic Code (kept through the terminal/clunky redesign — it's a
+   paid font, so the look changed shape/colour but not the typeface)
    ============================================================================ */
-const mono = "'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace";
+const comic = "Comic Code";
+
+globalFontFace(comic, {
+  src: "url('https://m.doughmination.gay/f/Comic-Code/woff2/ComicCode-Regular.woff2') format('woff2'), url('https://m.doughmination.gay/f/Comic-Code/woff/ComicCode-Regular.woff') format('woff')",
+  fontWeight: 400,
+  fontStyle: "normal",
+});
+globalFontFace(comic, {
+  src: "url('https://m.doughmination.gay/f/Comic-Code/woff2/ComicCode-Italic.woff2') format('woff2'), url('https://m.doughmination.gay/f/Comic-Code/woff/ComicCode-Italic.woff') format('woff')",
+  fontWeight: 400,
+  fontStyle: "italic",
+});
+globalFontFace(comic, {
+  src: "url('https://m.doughmination.gay/f/Comic-Code/woff2/ComicCode-Medium.woff2') format('woff2'), url('https://m.doughmination.gay/f/Comic-Code/woff/ComicCode-Medium.woff') format('woff')",
+  fontWeight: 500,
+  fontStyle: "normal",
+});
+globalFontFace(comic, {
+  src: "url('https://m.doughmination.gay/f/Comic-Code/woff2/ComicCode-Bold.woff2') format('woff2'), url('https://m.doughmination.gay/f/Comic-Code/woff/ComicCode-Bold.woff') format('woff')",
+  fontWeight: 700,
+  fontStyle: "normal",
+});
 
 /* ============================================================================
    GLOBAL RESET & BASE STYLES
@@ -36,7 +57,7 @@ globalStyle("html", {
 });
 
 globalStyle("body", {
-  fontFamily: mono,
+  fontFamily: `'${comic}', sans-serif`,
   background: vars.bg,
   color: vars.text,
   minHeight: "100vh",
@@ -46,7 +67,7 @@ globalStyle("body", {
 globalStyle(
   "h1, h2, h3, h4, h5, h6, label, input, select, textarea, button",
   {
-    fontFamily: mono,
+    fontFamily: `'${comic}', cursive`,
   },
 );
 
diff --git a/src/styles/site.css.ts b/src/styles/site.css.ts
index 53804a0..93007a0 100644
--- a/src/styles/site.css.ts
+++ b/src/styles/site.css.ts
@@ -16,9 +16,8 @@ const tablet = "screen and (min-width: 641px) and (max-width: 1024px)";
 const ultrawide = "screen and (min-width: 1920px)";
 
 // No per-flavor font token in the new theme contract — same face across
-// every flavor, so it just lives here as a plain constant. Kept its old name
-// (see theme.css.ts) but now points at IBM Plex Mono.
-const FONT_COMIC = "'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace";
+// every flavor, so it just lives here as a plain constant.
+const FONT_COMIC = "'Comic Code', cursive";
 
 export const fontComic = style({
   fontFamily: FONT_COMIC,
diff --git a/src/styles/theme.css.ts b/src/styles/theme.css.ts
index 0bb7fa1..52a9ead 100644
--- a/src/styles/theme.css.ts
+++ b/src/styles/theme.css.ts
@@ -41,11 +41,8 @@ export const vars = createGlobalThemeContract({
 
 /** Not flavor-dependent, but goes through the same contract so it's always
  *  referenced via var(--font-comic) — never inlined as a raw string, which
- *  trips up the CSS serializer on the quote+comma combo.
- *  Token kept its old name across the terminal/clunky redesign (renaming it
- *  would mean touching every consumer) but now points at IBM Plex Mono. */
-const FONT_COMIC_VALUE =
-  "'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace";
+ *  trips up the CSS serializer on the quote+comma combo. */
+const FONT_COMIC_VALUE = "'Comic Code', cursive";
 
 /**
  * One palette, applied globally. The old per-flavor themes (cherry, toxic,