Add Maple Mono Nerd Font and custom theme support to Forgejo
This commit is contained in:
parent
387fb668b3
commit
ff1d6b0829
3 changed files with 70 additions and 0 deletions
13
nix-system-configs/modules/styling/forgejo/home.tmpl
Normal file
13
nix-system-configs/modules/styling/forgejo/home.tmpl
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
[[:Template:Template "base/head" .]]
|
||||
<div role="main" aria-label="[[:Template:If .IsSigned]][[:Template:Ctx.Locale.Tr "dashboard"]][[:Template:Else]][[:Template:Ctx.Locale.Tr "home"]][[:Template:End]]" class="page-content home">
|
||||
<div class="tw-mb-8 tw-px-8">
|
||||
<div class="center">
|
||||
<div class="hero">
|
||||
<h1 class="ui icon header title">
|
||||
Forgejo hosted on NixOS!
|
||||
</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
[[:Template:Template "base/footer" .]]
|
||||
18
nix-system-configs/modules/styling/forgejo/theme-custom.css
Normal file
18
nix-system-configs/modules/styling/forgejo/theme-custom.css
Normal 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); */
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue