commit
aaa
diff --git a/src/server.ts b/src/server.ts
index 00f85f4..65d225f 100644
--- a/src/server.ts
+++ b/src/server.ts
@@ -97,7 +97,6 @@ import {
type GitService,
} from "./smart-http.ts";
import * as view from "./views.ts";
-import { FONT_ORIGIN } from "./styles/index.ts";
type Env = { Variables: { user: SessionUser | null } };
const app = new Hono<Env>({ strict: false });
@@ -129,7 +128,7 @@ const CSP = [
"script-src 'self'",
"style-src 'self'",
"img-src 'self' data: https:",
- `font-src 'self' ${FONT_ORIGIN}`,
+ "font-src 'self'",
"connect-src 'self'",
`form-action 'self'${SSO_ORIGIN ? ` ${SSO_ORIGIN}` : ""}`,
"frame-ancestors 'none'",
diff --git a/src/styles/fonts.css.ts b/src/styles/fonts.css.ts
index 6c65ab0..bc2d75a 100644
--- a/src/styles/fonts.css.ts
+++ b/src/styles/fonts.css.ts
@@ -2,45 +2,5 @@
* LICENCED DASL-1.0 (c) Clove Twilight
*/
-import { globalFontFace } from "@vanilla-extract/css";
-
+// Styling matches auth-server: system UI fonts only, no custom webfonts.
export const FONT_ORIGIN = "https://m.doughmination.gay";
-
-const CDN = `${FONT_ORIGIN}/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;
-
-const MAPLE_MONO = [
- { file: "MapleMono-Regular", weight: 400 },
- { file: "MapleMono-Bold", weight: 700 },
-] as const;
-
-for (const { file, weight } of MAPLE_MONO) {
- globalFontFace("Maple Mono", {
- src: `url('${CDN}/Maple-Mono/Normal/woff2/${file}.woff2') format('woff2')`,
- fontWeight: weight,
- fontStyle: "normal",
- fontDisplay: "swap",
- });
-}
-
-globalFontFace("Ink Free", {
- src: `url('${CDN}/Ink-Free/Inkfree.woff2') format('woff2')`,
- fontWeight: 400,
- fontStyle: "normal",
- fontDisplay: "swap",
-});
-
-for (const { file, weight, style } of COMIC_CODE) {
- globalFontFace("Comic Code", {
- src: `url('${CDN}/Comic-Code/woff2/${file}.woff2') format('woff2')`,
- fontWeight: weight,
- fontStyle: style,
- fontDisplay: "swap",
- });
-}
diff --git a/src/styles/theme.css.ts b/src/styles/theme.css.ts
index a2b34a0..0445397 100644
--- a/src/styles/theme.css.ts
+++ b/src/styles/theme.css.ts
@@ -35,29 +35,29 @@ export const vars = createGlobalThemeContract({
});
createGlobalTheme(":root", vars, {
- accent: "#5cd1e6",
- accentAlt: "#34a9c6",
+ accent: "#c22a44",
+ accentAlt: "#9c1f34",
gilt: "#d8b775",
- danger: "#ec6a80",
- success: "#4fc9a4",
-
- bgDeep: "#02060c",
- bgRaised: "#0b1726",
- bg: "#060d18",
- surface: "#112035",
- surfaceHi: "#1c2f48",
- border: "#294464",
-
- textFaint: "#64809c",
- textDim: "#7a95b0",
- textMuted: "#93aec7",
- textSoft: "#c2d6e6",
- text: "#eaf4fb",
-
- font: "'Comic Code', system-ui, -apple-system, sans-serif",
- display: "'Ink Free', 'Comic Code', system-ui, -apple-system, sans-serif",
- mono: "'Maple Mono', ui-monospace, SFMono-Regular, Menlo, monospace",
- radius: "0",
+ danger: "#ff4d5e",
+ success: "#5f9e78",
+
+ bgDeep: "#030207",
+ bgRaised: "#100a10",
+ bg: "#07050a",
+ surface: "#1a1016",
+ surfaceHi: "#241318",
+ border: "#34141c",
+
+ textFaint: "#6b4a53",
+ textDim: "#82616a",
+ textMuted: "#9c848c",
+ textSoft: "#c7b6ba",
+ text: "#ece3e6",
+
+ font: "system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif",
+ display: "Georgia, 'Iowan Old Style', 'Palatino Linotype', serif",
+ mono: "ui-monospace, 'Cascadia Code', Menlo, monospace",
+ radius: "8px",
});
globalStyle(":root", { colorScheme: "dark" });