Commit notifications for all Sup repositories
 help / color / mirror / Atom feed
From: Dan Callaghan <dan@bl2.djc.id.au>
To: sup-commits@supmua.dev
Subject: [sup-website.git] 05/06: change font to Iosevka
Date: Sun, 18 Oct 2026 20:33:25 +1100	[thread overview]
Message-ID: <20261018093320.D8D6729D560@bl2.djc.id.au> (raw)
In-Reply-To: <179231600032.394837.8334305828982838259@bl2.djc.id.au>

New commit on branch master:
https://supmua.dev/git/sup-website/commit/20a82ec7edb5470246f113381b7b7e2c3bf8f851.html

commit 20a82ec7edb5470246f113381b7b7e2c3bf8f851
Author: Dan Callaghan <djc@djc.id.au>
AuthorDate: Sun Oct 18 20:19:39 2026 +1100

    change font to Iosevka
---
 _plugins/webfonts.nix        | 98 ++++++++++++++++++++++++++++++++++++++++++++
 _plugins/webfonts.rb         | 13 ++++++
 stylesheets/public-inbox.css | 18 +++++---
 stylesheets/stylesheet.css   | 27 +++++++-----
 4 files changed, 140 insertions(+), 16 deletions(-)

diff --git a/_plugins/webfonts.nix b/_plugins/webfonts.nix
new file mode 100644
index 0000000..84b42eb
--- /dev/null
+++ b/_plugins/webfonts.nix
@@ -0,0 +1,98 @@
+let
+  pkgs = import <nixpkgs> { };
+in
+(pkgs.iosevka.override {
+  privateBuildPlan = ''
+    [buildPlans.IosevkaAile]
+    family = "Iosevka Aile SS09"
+    spacing = "quasi-proportional"
+    serifs = "sans"
+    noLigation = true
+    webfontFormats = ["WOFF2"]
+    [buildPlans.IosevkaAile.variants]
+    inherits = "ss09"
+    [buildPlans.IosevkaAile.variants.design]
+    f = "narrow-serifless-crossbar-at-x-height"
+    i = "serifed-flat-tailed"
+    r = "narrow-hook-serifless"
+    t = "flat-hook-short-neck"
+    [buildPlans.IosevkaAile.weights]
+    Light = "default.Light"
+    Regular = "default.Regular"
+    Bold = "default.Bold"
+    [buildPlans.IosevkaAile.widths]
+    Normal = "default.Extended"
+    [buildPlans.IosevkaAile.slopes]
+    Upright = "default.Upright"
+    Italic = "default.Italic"
+    [buildPlans.IosevkaAile.subset.include]
+    ranges = [
+      # https://github.com/zachleat/glyphhanger/blob/8b81f57dc214cb2a1d1b5abb209e1d39454d7c51/src/GlyphHangerWhitelist.js#L14
+      [0, 255],
+      [305, 305],
+      [338, 339],
+      [699, 700],
+      [710, 710],
+      [730, 730],
+      [732, 732],
+      [8192, 8303],
+      [8308, 8308],
+      [8364, 8364],
+      [8482, 8482],
+      [8593, 8593],
+      [8595, 8595],
+      [8722, 8722],
+      [8725, 8725],
+      [65279, 65279],
+      [65533, 65533],
+    ]
+    [buildPlans.Iosevka]
+    family = "Iosevka SS09"
+    spacing = "normal"
+    serifs = "sans"
+    noLigation = true
+    webfontFormats = ["WOFF2"]
+    [buildPlans.Iosevka.variants]
+    inherits = "ss09"
+    [buildPlans.Iosevka.weights]
+    Light = "default.Light"
+    Regular = "default.Regular"
+    [buildPlans.Iosevka.widths]
+    Normal = "default.Extended"
+    [buildPlans.Iosevka.slopes]
+    Upright = "default.Upright"
+    [buildPlans.Iosevka.subset.include]
+    ranges = [
+      # https://github.com/zachleat/glyphhanger/blob/8b81f57dc214cb2a1d1b5abb209e1d39454d7c51/src/GlyphHangerWhitelist.js#L14
+      [0, 255],
+      [305, 305],
+      [338, 339],
+      [699, 700],
+      [710, 710],
+      [730, 730],
+      [732, 732],
+      [8192, 8303],
+      [8308, 8308],
+      [8364, 8364],
+      [8482, 8482],
+      [8593, 8593],
+      [8595, 8595],
+      [8722, 8722],
+      [8725, 8725],
+      [65279, 65279],
+      [65533, 65533],
+    ]
+  '';
+  set = "CustomSupWebsite";
+}).overrideAttrs (finalAttrs: previousAttrs: {
+  buildPhase = ''
+    export HOME=$TMPDIR
+    cat private-build-plans.toml
+    npm run build --no-update-notifier --targets webfont::IosevkaAile webfont::Iosevka -- --jCmd=$NIX_BUILD_CORES --verbosity=9 | cat
+  '';
+  installPhase = ''
+    install -d $out
+    cp dist/*/*.css $out/
+    cp -r dist/*/WOFF2 $out/
+  '';
+})
diff --git a/_plugins/webfonts.rb b/_plugins/webfonts.rb
new file mode 100644
index 0000000..85277e7
--- /dev/null
+++ b/_plugins/webfonts.rb
@@ -0,0 +1,13 @@
+require 'fileutils'
+require 'open3'
+
+Jekyll::Hooks.register :site, :post_write do |site|
+  Jekyll.logger.info "Fonts:", "Building"
+  out, err, status = Open3.capture3 "nix-build", "_plugins/webfonts.nix", "--no-out-link"
+  raise "nix-build failed: #{err}" unless status.success?
+  result = out.strip
+  FileUtils.mkdir_p "#{site.dest}/fonts"
+  Dir["#{result}/*.css"].each { |f| FileUtils.cp f, "#{site.dest}/fonts" }
+  FileUtils.mkdir_p "#{site.dest}/fonts/WOFF2"
+  Dir["#{result}/WOFF2/*"].each { |f| FileUtils.cp f, "#{site.dest}/fonts/WOFF2" }
+end
diff --git a/stylesheets/public-inbox.css b/stylesheets/public-inbox.css
index 949278a..2015385 100644
--- a/stylesheets/public-inbox.css
+++ b/stylesheets/public-inbox.css
@@ -1,9 +1,16 @@
+@import "../fonts/Iosevka.css";
+@import "../fonts/IosevkaAile.css";
 body {
   background: #151515 url("/images/bkg.png") 0 0;
   color: #eaeaea;
   font-size: 16px;
   line-height: 1.5;
-  font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
+  font-family: "Iosevka SS09 Web", monospace;
+  font-weight: 300;
+}
+/* public-inbox injects a rule: *{font-family:monospace;} so override it here: */
+* {
+  font-family: "Iosevka SS09 Web", monospace;
 }
 a {
   color: #ffcc00;
@@ -18,9 +25,8 @@ a {
 a:hover {
   color: #ffeb9b;
 }
-b {
-  font-weight: 500;
-  font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
+b, strong {
+  font-weight: 400;
   color: #b5e853;
 }
 u {
@@ -45,7 +51,7 @@ input[type="submit"] {
   border-bottom: 2px solid rgba(0, 0, 0, 0.7);
   border-top: 2px solid rgba(0, 0, 0, 1);
   color: rgba(255, 255, 255, 0.8);
-  font-family: sans-serif;
+  font-family: "Iosevka Aile SS09 Web", sans-serif;
   font-weight: bold;
   font-size: 13px;
   text-decoration: none;
@@ -64,7 +70,7 @@ input[type="text"] {
   border-bottom: 2px solid rgba(0, 0, 0, 0.7);
   border-top: 2px solid rgba(0, 0, 0, 1);
   color: rgba(255, 255, 255, 0.8);
-  font-family: Helvetica, Arial, sans-serif;
+  font-family: "Iosevka Aile SS09 Web", sans-serif;
   font-size: 13px;
   text-decoration: none;
   text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.75);
diff --git a/stylesheets/stylesheet.css b/stylesheets/stylesheet.css
index f190f22..5b7bf0e 100644
--- a/stylesheets/stylesheet.css
+++ b/stylesheets/stylesheet.css
@@ -1,3 +1,6 @@
+@import "../fonts/Iosevka.css";
+@import "../fonts/IosevkaAile.css";
+
 body {
   margin: 0;
   padding: 0;
@@ -5,7 +8,11 @@ body {
   color: #eaeaea;
   font-size: 16px;
   line-height: 1.5;
-  font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
+  font-family: "Iosevka Aile SS09 Web", monospace;
+  font-weight: 300;
+}
+b, strong {
+  font-weight: 700;
 }
 
 /* General & 'Reset' Stuff */
@@ -64,9 +71,8 @@ header {
 header h1 {
   font-size: 30px;
   line-height: 1.5;
-  margin: 0 0 0 -40px;
+  margin: 0 0 0 -1em;
   font-weight: bold;
-  font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
   color: #b5e853;
   text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1),
                0 0 5px rgba(181, 232, 83, 0.1),
@@ -110,8 +116,7 @@ section img {
 }
 
 h1, h2, h3, h4, h5, h6 {
-  font-weight: normal;
-  font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
+  font-weight: 400;
   color: #b5e853;
   letter-spacing: -0.03em;
   text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1),
@@ -181,6 +186,8 @@ blockquote {
 
 tt.code, pre.code {
   color: #b5e853;
+  font-family: "Iosevka SS09 Web", monospace;
+  font-weight: 400;
 }
 pre.code {
   background: rgba(0, 0, 0, 0.9);
@@ -235,7 +242,6 @@ hr {
   border-bottom: 2px solid rgba(0, 0, 0, 0.7);
   border-top: 2px solid rgba(0, 0, 0, 1);
   color: rgba(255, 255, 255, 0.8);
-  font-family: Helvetica, Arial, sans-serif;
   font-weight: bold;
   font-size: 13px;
   text-decoration: none;
@@ -299,8 +305,13 @@ a:hover {
   max-width: 1200px;
 }
 
+.git, .git pre {
+  font-family: "Iosevka SS09 Web", monospace;
+}
+
 .git .url {
   margin: -10px 0 10px 0;
+  font-weight: 400;
   color: #666;
 }
 .git .url:before {
@@ -328,9 +339,6 @@ a.line {
   text-decoration: none;
 }
 
-#blob {
-  line-height: 1.25;
-}
 #blob a {
   color: #888;
 }
@@ -342,7 +350,6 @@ a.line {
   width: auto;
 }
 .git table thead td {
-  font-weight: 300;
   color: #b5e853;
 }
 .git table td {

  parent reply	other threads:[~2026-10-18  9:33 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-18  9:33 [sup-website.git] branch master updated (4371c80 -> b791e6e) Dan Callaghan
2026-10-18  9:33 ` [sup-website.git] 01/06: move releases Atom feed to index.atom Dan Callaghan
2026-10-18  9:33 ` [sup-website.git] 02/06: remove superfluous links to Github on the homepage Dan Callaghan
2026-10-18  9:33 ` [sup-website.git] 03/06: fix heading levels on the homepage to be consistent Dan Callaghan
2026-10-18  9:33 ` [sup-website.git] 04/06: small wording tweaks to opening paragraphs Dan Callaghan
2026-10-18  9:33 ` Dan Callaghan [this message]
2026-10-18  9:33 ` [sup-website.git] 06/06: dial up the fake CRT glow effect Dan Callaghan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261018093320.D8D6729D560@bl2.djc.id.au \
    --to=dan@bl2.djc.id.au \
    --cc=djc@djc.id.au \
    --cc=sup-commits@supmua.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox