Skip to content

Commit d8e589f

Browse files
authored
chore(ui): switch sans font from DM Sans to Inter (#160)
DM Sans did not render well on external monitors. Inter is the more common choice for this kind of UI and is available in the same variable-font format. Updates the font in globals.css, the Google Fonts link in the local and cloud app shells, and the Electron loading page.
1 parent a6cff1f commit d8e589f

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎apps/cloud/src/routes/__root.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const Route = createRootRoute({
3131
{ rel: "preconnect", href: "https://fonts.gstatic.com", crossOrigin: "anonymous" },
3232
{
3333
rel: "stylesheet",
34-
href: "https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300..700;1,9..40,300..700&family=Instrument+Serif&family=JetBrains+Mono:wght@400;500&display=swap",
34+
href: "https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Instrument+Serif&family=JetBrains+Mono:wght@400;500&display=swap",
3535
},
3636
{ rel: "stylesheet", href: appCss },
3737
],

‎apps/desktop/src/main.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -510,12 +510,12 @@ const loadingHTML = (scopePath: string): string => {
510510
<head>
511511
<link rel="preconnect" href="https://fonts.googleapis.com" />
512512
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
513-
<link href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500&family=Instrument+Serif&display=swap" rel="stylesheet" />
513+
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Instrument+Serif&display=swap" rel="stylesheet" />
514514
<style>
515515
* { margin: 0; padding: 0; box-sizing: border-box; }
516516
517517
body {
518-
font-family: "DM Sans", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
518+
font-family: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
519519
display: flex; align-items: center; justify-content: center;
520520
height: 100vh;
521521
background: ${bg};

‎apps/local/index.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
99
<link
1010
rel="stylesheet"
11-
href="https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300..700;1,9..40,300..700&family=Instrument+Serif&family=JetBrains+Mono:wght@400;500&display=swap"
11+
href="https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Instrument+Serif&family=JetBrains+Mono:wght@400;500&display=swap"
1212
/>
1313
<script type="module">
1414
if (import.meta.env.DEV) {

‎packages/react/src/styles/globals.css‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
@source "../../../plugins/*/src/react/**/*.{ts,tsx}";
99

1010
@theme inline {
11-
--font-sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
11+
--font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
1212
--font-mono: "JetBrains Mono", ui-monospace, monospace;
1313
--font-display: "Instrument Serif", Georgia, serif;
1414

0 commit comments

Comments
 (0)