diff --git a/nix-system-configs/modules/styling/forgejo/header.tmpl b/nix-system-configs/modules/styling/forgejo/header.tmpl index 007fdb6..a61e8c8 100644 --- a/nix-system-configs/modules/styling/forgejo/header.tmpl +++ b/nix-system-configs/modules/styling/forgejo/header.tmpl @@ -8,8 +8,19 @@ font-display: swap; } +@font-face { + font-family: 'Jost Book'; + src: url('/assets/fonts/Jost-400-Book.otf') format('opentype'); + font-weight: normal; + font-style: normal; + font-display: swap; +} + + :root { + /* prefer the Maple Mono Nerd Font for monospace usage */ --fonts-monospace: 'Maple Mono NF' !important; + --fonts-proportional: 'Jost Book' !important; } code, pre, kbd, tt, samp, .ui code, .ui pre, .monospace { diff --git a/nix-system-configs/modules/styling/forgejo/theme-custom.css b/nix-system-configs/modules/styling/forgejo/theme-custom.css index 821e692..2b955c3 100644 --- a/nix-system-configs/modules/styling/forgejo/theme-custom.css +++ b/nix-system-configs/modules/styling/forgejo/theme-custom.css @@ -22,4 +22,11 @@ /* prefer the Maple Mono Nerd Font for monospace usage */ --fonts-monospace: 'Maple Mono NF' !important; --fonts-proportional: 'Jost Book' !important; -} \ No newline at end of file +} + +/* If some odd reason the themes are not appluing even after rebuild, try the following +sudo systemd-tmpfiles --create --remove --exclude-prefix=/dev +sudo systemctl restart forgejo + +TODO: Investigate the inconsistencies, see header.tmpl as a workaround. + */ \ No newline at end of file