Title here
Summary here
Thulite recommends hosting fonts in your project with Fontsource.
This keeps font delivery local, predictable, and privacy-friendly.
Add a Fontsource package:
Mount the package to static/fonts in config/_default/module.toml:
[[mounts]]
source = "node_modules/@fontsource-variable/geist"
target = "static/fonts/geist"Define @font-face in assets/scss/common/_fonts.scss:
@font-face {
font-family: "Geist Variable";
font-style: normal;
font-display: swap;
font-weight: 100 900;
src: url(fonts/geist/files/geist-latin-wght-normal.woff2) format("woff2-variations");
}Apply it in assets/scss/common/_variables-custom.scss:
$font-family-sans-serif:
"Geist Variable",
system-ui,
-apple-system,
"Segoe UI",
Roboto,
"Helvetica Neue",
Arial,
sans-serif;This project already follows this pattern with Geist and Geist Mono.
Install and self-host open source fonts.
Map files from node_modules into your Hugo project.