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
22 changes: 19 additions & 3 deletions docs/assets/css/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,25 @@
Refined academic aesthetic
═══════════════════════════════════════════════ */

/* NOTE: No @import for Google Fonts here.
MkDocs Material loads fonts via theme.font config.
The @import was render-blocking and caused page load delays. */
/* ── Self-hosted fonts (zero external requests) ── */
@font-face {
font-family: "Inter";
src: url("../fonts/Inter.woff2") format("woff2");
font-weight: 100 900;
font-display: swap;
}

@font-face {
font-family: "JetBrains Mono";
src: url("../fonts/JetBrainsMono.woff2") format("woff2");
font-weight: 100 800;
font-display: swap;
}

:root {
--md-text-font: "Inter";
--md-code-font: "JetBrains Mono";
}

/* ── CSS Variables ── */
:root {
Expand Down
Binary file added docs/assets/fonts/Inter.woff2
Binary file not shown.
Binary file added docs/assets/fonts/JetBrainsMono.woff2
Binary file not shown.
4 changes: 1 addition & 3 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ theme:
toggle:
icon: material/weather-sunny
name: Switch to light mode
font:
text: Inter
code: JetBrains Mono
font: false
icon:
repo: fontawesome/brands/github
logo: material/chart-timeline-variant-shimmer
Expand Down
Loading