Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
fix(desktop): add Geist font loading for consistent typography
Naiyuan Qinga3149858f51a
diff --git a/apps/desktop/package.json b/apps/desktop/package.jsonindex ff1ba87e5e..6b87f16927 100644--- a/apps/desktop/package.json+++ b/apps/desktop/package.json@@ -20,6 +20,8 @@"@multica/core": "workspace:*","@multica/ui": "workspace:*","@multica/views": "workspace:*",+ "@fontsource/geist-mono": "^5.2.7",+ "@fontsource/geist-sans": "^5.2.5","react-router-dom": "^7.6.0","shadcn": "^4.1.0","sonner": "^2.0.7",diff --git a/apps/desktop/src/renderer/src/globals.css b/apps/desktop/src/renderer/src/globals.cssindex 31179bde68..4b4667800c 100644--- a/apps/desktop/src/renderer/src/globals.css+++ b/apps/desktop/src/renderer/src/globals.css@@ -6,6 +6,13 @@@custom-variant dark (&:is(.dark *));+/* Geist font: define CSS variables that tokens.css @theme inline references.+ Web app gets these from next/font/google; desktop must set them explicitly. */+:root {+ --font-sans: "Geist Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;+ --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;+}+@source "../../../../../packages/ui/**/*.tsx";@source "../../../../../packages/core/**/*.{ts,tsx}";@source "../../../../../packages/views/**/*.{ts,tsx}";diff --git a/apps/desktop/src/renderer/src/main.tsx b/apps/desktop/src/renderer/src/main.tsxindex 16e637c663..23513c95ad 100644--- a/apps/desktop/src/renderer/src/main.tsx+++ b/apps/desktop/src/renderer/src/main.tsx@@ -1,5 +1,11 @@import ReactDOM from "react-dom/client";import App from "./App";+import "@fontsource/geist-sans/400.css";+import "@fontsource/geist-sans/500.css";+import "@fontsource/geist-sans/600.css";+import "@fontsource/geist-sans/700.css";+import "@fontsource/geist-mono/400.css";+import "@fontsource/geist-mono/700.css";import "./globals.css";ReactDOM.createRoot(document.getElementById("root")!).render(<App />);diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 3fa0637d6b..93a3a0c7a7 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -96,6 +96,12 @@ importers:'@electron-toolkit/utils':specifier: ^4.0.0version: 4.0.0([email protected])+ '@fontsource/geist-mono':+ specifier: ^5.2.7+ version: 5.2.7+ '@fontsource/geist-sans':+ specifier: ^5.2.5+ version: 5.2.5'@multica/core':specifier: workspace:*version: link:../../packages/core@@ -1258,6 +1264,12 @@ packages:'@floating-ui/[email protected]':resolution: {integrity: sha512-RiB/yIh78pcIxl6lLMG0CgBXAZ2Y0eVHqMPYugu+9U0AeT6YBeiJpf7lbdJNIugFP5SIjwNRgo4DhR1Qxi26Gg==}+ '@fontsource/[email protected]':+ resolution: {integrity: sha512-xVPVFISJg/K0VVd+aQN0Y7X/sw9hUcJPyDWFJ5GpyU3bHELhoRsJkPSRSHXW32mOi0xZCUQDOaPj1sqIFJ1FGg==}++ '@fontsource/[email protected]':+ resolution: {integrity: sha512-anllOHyJbElRs9fV15TeDRqAeb1IKm4bSknPl6ZMoyPTx1BBy7logudcUwpNjmQLkzn4Q0JGQLRCUKJYoyST6A==}+'@formatjs/[email protected]':resolution: {integrity: sha512-XOMO2Hupl0wdd172Y06h6kLpBz6Dv+J4okPLl4LPtzbr8f66WbIoy4ev98EBuZ6ZK4h5ydTN6XneT4QVpD7cdA==}@@ -7417,6 +7429,10 @@ snapshots:'@floating-ui/[email protected]': {}+ '@fontsource/[email protected]': {}++ '@fontsource/[email protected]': {}+'@formatjs/[email protected]':dependencies:tslib: 2.8.1