mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-15 18:15:35 +00:00
feat(typography): auto-detect bundled fonts and skip Google Fonts CDN
Add a second resolution tier to the typography system: before falling back to Google Fonts, check assets/dist/font/ for a matching local file. When found, emit @font-face with local() fallback instead of a CDN <link>. Variable fonts detected from ".var." filename convention. Bundle JetBrains Mono alongside Inter so the default "modern" pack loads entirely from local files — zero external font requests.
This commit is contained in:
1 parent
aa272895d8
commit
71b5a1b844
3 files changed
+82
-8
No files matched your search
BIN
Binary file not shown.
Binary file not shown.
Reference in new issue
Block a user