Add Maple Mono Nerd Font and custom theme support to Forgejo

This commit is contained in:
Root User 2026-02-12 22:05:17 +01:00
parent 387fb668b3
commit ff1d6b0829
Signed by: root
GPG key ID: 087F0A95E5766D72
3 changed files with 70 additions and 0 deletions

View file

@ -0,0 +1,18 @@
@font-face {
font-family: 'Maple Mono NF';
src: url('/assets/fonts/MapleMonoNerd.ttf') format('truetype');
font-weight: normal;
font-style: normal;
font-display: swap;
}
/* import base Forgejo theme so we only override what we need */
@import "./theme-forgejo-auto.css";
:root {
/* prefer the Maple Mono Nerd Font for monospace usage */
--fonts-monospace: 'Maple Mono NF', var(--fonts-monospace);
/* if you want the UI proportional font to also use Maple, set --fonts-override */
/* --fonts-override: 'Maple Mono NF', var(--fonts-override); */
}