Dough Git

commit

AAA

commit
f18ea8fd88869090ff8fba19beb83c6a5d820204
author
Clove Twilight <[email protected]>
date
2026-07-29 22:26

diff --git a/src/abuse.ts b/src/abuse.ts
index 51a4938..4af0dfa 100644
--- a/src/abuse.ts
+++ b/src/abuse.ts
@@ -30,16 +30,23 @@ export const ABUSE_HTML = `<!doctype html>
 <link rel="icon" type="image/png" href="/icon.png" />
 <title>Abuse & contact — Doughmination API</title>
 <style>
+  /* Comic Code + info dark palette, matching every other app. */
+  @font-face { font-family: "Comic Code";
+    src: url("https://fonts.doughmination.co.uk/ComicCode-Regular_2022-05-24-151938_hsmz.woff2") format("woff2");
+    font-weight: 400; font-style: normal; font-display: swap; }
+  @font-face { font-family: "Comic Code";
+    src: url("https://fonts.doughmination.co.uk/ComicCode-Bold_2022-05-24-152309_zqkm.woff2") format("woff2");
+    font-weight: 700; font-style: normal; font-display: swap; }
   :root {
     color-scheme: dark;
-    --base: #1e1e2e; --mantle: #181825; --surface0: #313244; --surface1: #45475a;
-    --surface2: #585b70; --subtext0: #a6adc8; --subtext1: #bac2de; --text: #cdd6f4;
-    --pink: #f5c2e7; --red: #f38ba8; --green: #a6e3a1; --blue: #89b4fa;
+    --base: #0a0b10; --mantle: #070810; --surface0: #12141c; --surface1: #1b1e2a;
+    --surface2: #232838; --subtext0: #9aa3c2; --subtext1: #c9cfe0; --text: #f4f6fb;
+    --pink: #f5a9b8; --red: #f38ba8; --green: #a6e3a1; --blue: #89b4fa;
     --bg: var(--base); --line: var(--surface2); --fg: var(--text); --muted: var(--subtext0);
-    --mono: ui-monospace, SFMono-Regular, Menlo, monospace; --accent: var(--pink);
+    --mono: "Comic Code", ui-monospace, SFMono-Regular, Menlo, monospace; --accent: var(--pink);
   }
   * { box-sizing: border-box; }
-  body { margin: 0; font: 15px/1.65 system-ui, sans-serif; background: var(--bg); color: var(--fg); }
+  body { margin: 0; font: 15px/1.65 "Comic Code", ui-monospace, monospace; background: var(--bg); color: var(--fg); }
   header { padding: 24px 20px 14px; border-bottom: 1px solid var(--line); }
   .inner { max-width: 720px; margin: 0 auto; }
   h1 { margin: 0 0 4px; font-size: 21px; }
@@ -53,7 +60,7 @@ export const ABUSE_HTML = `<!doctype html>
   .card { border: 1px solid var(--line); background: var(--surface0); border-radius: 10px; padding: 14px 16px; margin: 14px 0; }
   .card strong { color: var(--fg); }
   .back { font-size: 13.5px; }
-  ::selection { background: rgba(245,194,231,.28); }
+  ::selection { background: rgba(245,169,184,.28); }
 </style>
 </head>
 <body>
diff --git a/src/docs.ts b/src/docs.ts
index 4332f92..8277295 100644
--- a/src/docs.ts
+++ b/src/docs.ts
@@ -21,24 +21,35 @@ export const DOCS_HTML = `<!doctype html>
 <link rel="icon" type="image/png" href="/icon.png" />
 <title>Doughmination API reference</title>
 <style>
+  /* Comic Code + info dark palette, matching every other app. */
+  @font-face { font-family: "Comic Code";
+    src: url("https://fonts.doughmination.co.uk/ComicCode-Regular_2022-05-24-151938_hsmz.woff2") format("woff2");
+    font-weight: 400; font-style: normal; font-display: swap; }
+  @font-face { font-family: "Comic Code";
+    src: url("https://fonts.doughmination.co.uk/ComicCode-Medium_2022-05-24-151941_ugqm.woff2") format("woff2");
+    font-weight: 500; font-style: normal; font-display: swap; }
+  @font-face { font-family: "Comic Code";
+    src: url("https://fonts.doughmination.co.uk/ComicCode-Bold_2022-05-24-152309_zqkm.woff2") format("woff2");
+    font-weight: 700; font-style: normal; font-display: swap; }
   :root {
     color-scheme: dark;
 
-    /* Catppuccin Mocha */
-    --base: #1e1e2e;
-    --mantle: #181825;
-    --crust: #11111b;
-    --surface0: #313244;
-    --surface1: #45475a;
-    --surface2: #585b70;
-    --overlay0: #6c7086;
-    --overlay1: #7f849c;
-    --overlay2: #9399b2;
-    --subtext0: #a6adc8;
-    --subtext1: #bac2de;
-    --text: #cdd6f4;
-    --pink: #f5c2e7;
-    --mauve: #cba6f7;
+    /* Info dark palette (was Catppuccin Mocha). */
+    --base: #0a0b10;
+    --mantle: #070810;
+    --crust: #050609;
+    --surface0: #12141c;
+    --surface1: #1b1e2a;
+    --surface2: #232838;
+    --overlay0: #5b6480;
+    --overlay1: #6b7391;
+    --overlay2: #9aa3c2;
+    --subtext0: #9aa3c2;
+    --subtext1: #c9cfe0;
+    --text: #f4f6fb;
+    --pink: #f5a9b8;
+    /* HTTP-method hues kept distinguishable so the badges stay readable. */
+    --mauve: #c9a9f0;
     --red: #f38ba8;
     --peach: #fab387;
     --yellow: #f9e2af;
@@ -53,18 +64,18 @@ export const DOCS_HTML = `<!doctype html>
     --line: var(--surface2);
     --fg: var(--text);
     --muted: var(--subtext0);
-    --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
+    --mono: "Comic Code", ui-monospace, SFMono-Regular, Menlo, monospace;
     --accent: var(--pink);
 
     --get: var(--green); --post: var(--yellow); --put: var(--blue); --del: var(--red); --ws: var(--mauve);
   }
   * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; min-width: 0; }
   html { scroll-behavior: smooth; }
-  body { margin: 0; font: 15px/1.6 system-ui, sans-serif; background: var(--bg); color: var(--fg); overflow-x: hidden; }
+  body { margin: 0; font: 15px/1.6 "Comic Code", ui-monospace, monospace; background: var(--bg); color: var(--fg); overflow-x: hidden; }
 
   header {
     padding: 24px 20px 14px; border-bottom: 1px solid var(--line);
-    position: sticky; top: 0; background: linear-gradient(var(--bg), rgba(30,30,46,.94));
+    position: sticky; top: 0; background: linear-gradient(var(--bg), rgba(10,11,16,.94));
     backdrop-filter: blur(6px); z-index: 20;
     display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
   }
@@ -101,7 +112,7 @@ export const DOCS_HTML = `<!doctype html>
     background: var(--surface0); color: var(--fg); font: inherit; margin-bottom: 14px;
   }
   #filter::placeholder { color: var(--overlay1); }
-  #filter:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(245,194,231,.18); }
+  #filter:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(245,169,184,.18); }
 
   section { margin-bottom: 32px; scroll-margin-top: 116px; }
   section > h2 { font-size: 16.5px; margin: 0 0 3px; color: var(--fg); }
@@ -153,7 +164,7 @@ export const DOCS_HTML = `<!doctype html>
   .hidden { display: none; }
   a.self { color: var(--accent); text-decoration: none; }
 
-  ::selection { background: rgba(245,194,231,.28); color: var(--fg); }
+  ::selection { background: rgba(245,169,184,.28); color: var(--fg); }
 
   /* Scrollbars, for the browsers that respect this */
   * { scrollbar-color: var(--surface2) var(--mantle); scrollbar-width: thin; }
diff --git a/src/pages.ts b/src/pages.ts
index b9ded3a..1a3ed52 100644
--- a/src/pages.ts
+++ b/src/pages.ts
@@ -19,16 +19,23 @@ export function pageShell(title: string, subtitle: string, body: string): string
 <link rel="icon" type="image/png" href="/icon.png" />
 <title>${title} — Doughmination API</title>
 <style>
+  /* Comic Code + info dark palette, matching every other app. */
+  @font-face { font-family: "Comic Code";
+    src: url("https://fonts.doughmination.co.uk/ComicCode-Regular_2022-05-24-151938_hsmz.woff2") format("woff2");
+    font-weight: 400; font-style: normal; font-display: swap; }
+  @font-face { font-family: "Comic Code";
+    src: url("https://fonts.doughmination.co.uk/ComicCode-Bold_2022-05-24-152309_zqkm.woff2") format("woff2");
+    font-weight: 700; font-style: normal; font-display: swap; }
   :root {
     color-scheme: dark;
-    --base: #1e1e2e; --mantle: #181825; --surface0: #313244; --surface1: #45475a;
-    --surface2: #585b70; --subtext0: #a6adc8; --subtext1: #bac2de; --text: #cdd6f4;
-    --pink: #f5c2e7; --red: #f38ba8; --green: #a6e3a1; --blue: #89b4fa;
+    --base: #0a0b10; --mantle: #070810; --surface0: #12141c; --surface1: #1b1e2a;
+    --surface2: #232838; --subtext0: #9aa3c2; --subtext1: #c9cfe0; --text: #f4f6fb;
+    --pink: #f5a9b8; --red: #f38ba8; --green: #a6e3a1; --blue: #89b4fa;
     --bg: var(--base); --line: var(--surface2); --fg: var(--text); --muted: var(--subtext0);
-    --mono: ui-monospace, SFMono-Regular, Menlo, monospace; --accent: var(--pink);
+    --mono: "Comic Code", ui-monospace, SFMono-Regular, Menlo, monospace; --accent: var(--pink);
   }
   * { box-sizing: border-box; }
-  body { margin: 0; font: 15px/1.65 system-ui, sans-serif; background: var(--bg); color: var(--fg); }
+  body { margin: 0; font: 15px/1.65 "Comic Code", ui-monospace, monospace; background: var(--bg); color: var(--fg); }
   header { padding: 24px 20px 14px; border-bottom: 1px solid var(--line); }
   .inner { max-width: 720px; margin: 0 auto; }
   h1 { margin: 0 0 4px; font-size: 21px; }
@@ -43,7 +50,7 @@ export function pageShell(title: string, subtitle: string, body: string): string
   .card strong { color: var(--fg); }
   footer { max-width: 720px; margin: 0 auto; padding: 8px 20px 28px; font-size: 13px; color: var(--muted); }
   .big { font: 700 64px var(--mono); color: var(--accent); margin: 30px 0 6px; }
-  ::selection { background: rgba(245,194,231,.28); }
+  ::selection { background: rgba(245,169,184,.28); }
 </style>
 </head>
 <body>
diff --git a/src/system/routes/system_data.ts b/src/system/routes/system_data.ts
index 102f909..bcce66c 100644
--- a/src/system/routes/system_data.ts
+++ b/src/system/routes/system_data.ts
@@ -87,39 +87,46 @@ const INDEX_HTML = `<!doctype html>
 <meta charset="utf-8" />
 <title>Visitor Log Relay</title>
 <style>
-  :root { color-scheme: dark light; }
-  body { font: 14px/1.4 system-ui, sans-serif; margin: 0; padding: 16px;
-         background: #0e0f12; color: #e6e7eb; }
+  /* Comic Code + info dark palette, matching every other app. */
+  @font-face { font-family: "Comic Code";
+    src: url("https://fonts.doughmination.co.uk/ComicCode-Regular_2022-05-24-151938_hsmz.woff2") format("woff2");
+    font-weight: 400; font-style: normal; font-display: swap; }
+  @font-face { font-family: "Comic Code";
+    src: url("https://fonts.doughmination.co.uk/ComicCode-Bold_2022-05-24-152309_zqkm.woff2") format("woff2");
+    font-weight: 700; font-style: normal; font-display: swap; }
+  :root { color-scheme: dark; }
+  body { font: 14px/1.4 "Comic Code", ui-monospace, monospace; margin: 0; padding: 16px;
+         background: #0a0b10; color: #f4f6fb; }
   h1 { margin: 0 0 8px; font-size: 18px; }
   .stats { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
-  .stat { background: #1a1c22; border: 1px solid #272a32; border-radius: 8px;
+  .stat { background: #12141c; border: 1px solid #232838; border-radius: 8px;
           padding: 8px 12px; min-width: 120px; }
   .stat .n { font-size: 22px; font-weight: 600; }
   .stat .l { font-size: 11px; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.05em; }
   .controls { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; }
   input, select, button { font: inherit; padding: 6px 10px; border-radius: 6px;
-                          border: 1px solid #2c2f38; background: #1a1c22;
+                          border: 1px solid #232838; background: #12141c;
                           color: inherit; }
   button { cursor: pointer; }
-  button.primary { background: #3a5fcf; border-color: #3a5fcf; }
-  table { width: 100%; border-collapse: collapse; background: #14161b;
-          border: 1px solid #272a32; border-radius: 8px; overflow: hidden; }
-  th, td { padding: 6px 10px; text-align: left; border-bottom: 1px solid #1f2229;
+  button.primary { background: #f5a9b8; border-color: #f5a9b8; color: #0a0b10; }
+  table { width: 100%; border-collapse: collapse; background: #0e1017;
+          border: 1px solid #232838; border-radius: 8px; overflow: hidden; }
+  th, td { padding: 6px 10px; text-align: left; border-bottom: 1px solid #1b1e2a;
            font-size: 13px; vertical-align: top; }
-  th { background: #1a1c22; font-weight: 600; }
-  tr:hover { background: #181a20; cursor: pointer; }
-  td.ip { font-family: ui-monospace, monospace; }
-  td.path { font-family: ui-monospace, monospace; max-width: 320px;
+  th { background: #12141c; font-weight: 600; }
+  tr:hover { background: #1b1e2a; cursor: pointer; }
+  td.ip { font-family: "Comic Code", ui-monospace, monospace; }
+  td.path { font-family: "Comic Code", ui-monospace, monospace; max-width: 320px;
             overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
   .code-2xx { color: #6ee787; }
   .code-3xx { color: #f0c674; }
   .code-4xx, .code-5xx { color: #ff6b6b; }
   .top-paths { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
-  .top-paths span { background: #1a1c22; border: 1px solid #272a32;
+  .top-paths span { background: #12141c; border: 1px solid #232838;
                     border-radius: 4px; padding: 2px 6px; font-size: 12px;
-                    font-family: ui-monospace, monospace; }
+                    font-family: "Comic Code", ui-monospace, monospace; }
   details { margin-top: 12px; }
-  pre { background: #1a1c22; border: 1px solid #272a32; padding: 8px;
+  pre { background: #12141c; border: 1px solid #232838; padding: 8px;
         border-radius: 6px; overflow: auto; max-height: 60vh; font-size: 12px; }
   .hint { opacity: 0.6; font-size: 12px; margin-left: auto; }
   .empty { opacity: 0.6; text-align: center; padding: 32px; }