the_prg_server_configuration/nix-system-configs/modules/styling/forgejo/header.tmpl

32 lines
997 B
Cheetah

{{/* Custom header content - inject custom fonts that apply to all themes */}}
<style>
@font-face {
font-family: 'Maple Mono NF';
src: url('{{AppSubUrl}}/assets/fonts/MapleMonoNerd.ttf') format('truetype');
font-weight: normal;
font-style: normal;
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 {
font-family: 'Maple Mono NF', ui-monospace, SFMono-Regular, Menlo, Monaco, "Segoe UI Mono", Roboto Mono, "Courier New", monospace !important;
}
</style>
<!-- Load the custom theme CSS (served from $FORGEJO_CUSTOM/public/assets/css) -->
<link rel="stylesheet" href="{{AppSubUrl}}/assets/css/theme-custom.css">