Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/SharpClient.App/wwwroot/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover" />
<title>SharpClient.App</title>
<base href="/" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Space+Grotesk:wght@400;500;600&display=swap" />
<link rel="stylesheet" href="_content/SharpClient.UI/fonts.css" />
<link rel="stylesheet" href="_content/SharpClient.UI/app.css" />
<link rel="stylesheet" href="SharpClient.App.styles.css" />
<link rel="icon" href="data:,">
Expand Down
77 changes: 77 additions & 0 deletions src/SharpClient.UI/wwwroot/fonts.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
/* Self-hosted fonts (SIL Open Font License) — no external CDN, works offline.
woff2 files live alongside this file under _content/SharpClient.UI/fonts/; the url()s are relative
to this stylesheet. Latin subset only (Fontsource) — non-latin glyphs fall back to the system
monospace/sans in the --mono/--ui stacks. Weights match what the UI uses: mono 400/700 (bold ANSI),
Space Grotesk 400/500/600 (UI chrome). font-display:swap so text paints immediately with the
fallback and re-lays out when the webfont loads. */
Comment on lines +1 to +6
Comment on lines +3 to +6

/* JetBrains Mono — default output font */
@font-face {
font-family: 'JetBrains Mono';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url('fonts/jetbrains-mono-400.woff2') format('woff2');
}
@font-face {
font-family: 'JetBrains Mono';
font-style: normal;
font-weight: 700;
font-display: swap;
src: url('fonts/jetbrains-mono-700.woff2') format('woff2');
}

/* IBM Plex Mono — output font option */
@font-face {
font-family: 'IBM Plex Mono';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url('fonts/ibm-plex-mono-400.woff2') format('woff2');
}
@font-face {
font-family: 'IBM Plex Mono';
font-style: normal;
font-weight: 700;
font-display: swap;
src: url('fonts/ibm-plex-mono-700.woff2') format('woff2');
}

/* Space Mono — output font option */
@font-face {
font-family: 'Space Mono';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url('fonts/space-mono-400.woff2') format('woff2');
}
@font-face {
font-family: 'Space Mono';
font-style: normal;
font-weight: 700;
font-display: swap;
src: url('fonts/space-mono-700.woff2') format('woff2');
}

/* Space Grotesk — UI font */
@font-face {
font-family: 'Space Grotesk';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url('fonts/space-grotesk-400.woff2') format('woff2');
}
@font-face {
font-family: 'Space Grotesk';
font-style: normal;
font-weight: 500;
font-display: swap;
src: url('fonts/space-grotesk-500.woff2') format('woff2');
}
@font-face {
font-family: 'Space Grotesk';
font-style: normal;
font-weight: 600;
font-display: swap;
src: url('fonts/space-grotesk-600.woff2') format('woff2');
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 1 addition & 3 deletions src/SharpClient.Web/Components/App.razor
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<base href="/" />
<ResourcePreloader />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Space+Grotesk:wght@400;500;600&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="_content/SharpClient.UI/fonts.css" />
<link rel="stylesheet" href="_content/SharpClient.UI/app.css" />
<link rel="stylesheet" href="@Assets["SharpClient.Web.styles.css"]" />
<ImportMap />
Expand Down
Loading