Dough Git

commit

Styles

commit
9f4e91cc3ac1d66ae5dddcfcf8a6a782d453e952
author
Clove Twilight <[email protected]>
date
2026-08-23 21:27

diff --git a/src/styles/app.css.ts b/src/styles/app.css.ts
index 111c5bf..887ab6a 100644
--- a/src/styles/app.css.ts
+++ b/src/styles/app.css.ts
@@ -46,7 +46,7 @@ export const classes = {
   siteLogo: style({
     width: "1.5rem",
     height: "1.5rem",
-    borderRadius: "0.25rem",
+    borderRadius: 0,
     objectFit: "cover",
   }),
 
@@ -85,7 +85,7 @@ export const classes = {
     display: "inline-flex",
     alignItems: "center",
     justifyContent: "center",
-    borderRadius: "50%",
+    borderRadius: 0,
     background: vars.surfaceHi,
     color: vars.textSoft,
     fontWeight: 600,
@@ -272,7 +272,7 @@ export const classes = {
     display: "inline-block",
     padding: "0.05rem 0.4rem",
     marginLeft: "0.4rem",
-    borderRadius: "999px",
+    borderRadius: 0,
     border: `1px solid ${vars.border}`,
     background: vars.surfaceHi,
     fontFamily: vars.mono,
@@ -348,7 +348,7 @@ globalStyle(`${readme} p`, { margin: "0.75rem 0" });
 globalStyle(`${readme} code`, {
   background: vars.surfaceHi,
   padding: "0.12em 0.35em",
-  borderRadius: "4px",
+  borderRadius: 0,
   fontSize: "0.9em",
 });
 
diff --git a/src/styles/fonts.css.ts b/src/styles/fonts.css.ts
new file mode 100644
index 0000000..8472e44
--- /dev/null
+++ b/src/styles/fonts.css.ts
@@ -0,0 +1,26 @@
+/* Comic Code — the same paid display face used across the other doughmination
+ * sites (see the personal site's fonts.css.ts). Applied to the `font` token
+ * (UI chrome: nav, headers, labels) — `mono` stays a real monospace stack in
+ * theme.css.ts since dough-git aligns commit hashes, file sizes and tree
+ * listings in columns, which Comic Code's metrics aren't built for.
+ */
+
+import { globalFontFace } from "@vanilla-extract/css";
+
+const CDN = "https://m.doughmination.gay/f";
+
+const COMIC_CODE = [
+  { file: "ComicCode-Regular", weight: 400, style: "normal" },
+  { file: "ComicCode-Italic", weight: 400, style: "italic" },
+  { file: "ComicCode-Medium", weight: 500, style: "normal" },
+  { file: "ComicCode-Bold", weight: 700, style: "normal" },
+] as const;
+
+for (const { file, weight, style } of COMIC_CODE) {
+  globalFontFace("Comic Code", {
+    src: `url('${CDN}/Comic-Code/woff2/${file}.woff2') format('woff2'), url('${CDN}/Comic-Code/woff/${file}.woff') format('woff')`,
+    fontWeight: weight,
+    fontStyle: style,
+    fontDisplay: "swap",
+  });
+}
diff --git a/src/styles/index.ts b/src/styles/index.ts
index f24af5e..c765f4f 100644
--- a/src/styles/index.ts
+++ b/src/styles/index.ts
@@ -2,6 +2,7 @@
 // effects) and exposes the component class names. The esbuild + vanilla-extract
 // build turns all of this into one static CSS file at compile time.
 
+import "./fonts.css.ts";
 import "./theme.css.ts";
 import "./global.css.ts";
 
diff --git a/src/styles/theme.css.ts b/src/styles/theme.css.ts
index c953c96..53b9480 100644
--- a/src/styles/theme.css.ts
+++ b/src/styles/theme.css.ts
@@ -55,9 +55,10 @@ createGlobalTheme(":root", vars, {
   textSoft: "#c9cfe0",
   text: "#f4f6fb",
 
-  font: "system-ui, -apple-system, sans-serif",
+  // Comic Code loaded in fonts.css.ts (imported before this file in index.ts).
+  font: "'Comic Code', system-ui, -apple-system, sans-serif",
   mono: "ui-monospace, SFMono-Regular, Menlo, monospace",
-  radius: "6px",
+  radius: "0",
 });
 
 globalStyle(":root", { colorScheme: "dark" });