From 40617f8080123a0524e73a8b3956420019d8c30e Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Mon, 17 Aug 2026 19:50:40 +0000 Subject: [PATCH] Replace UnifrakturMaguntia with New Rocker, fix font picker duplicates Picker font-variable regexes only allowed [a-z-], so --font-exo2 was never parsed or stripped: picking another font left the old row behind and the selection showed wrong. Now digits are allowed, stripping is declaration-level (handles inline rows) and removes all font rows before inserting, and the picker re-parses on every CSS edit so manual changes update the selection live. --- AGENTS.md | 2 +- docs/design-principles.md | 2 +- frontend/src/SiteEditor.vue | 20 +++++++++++++----- frontend/src/assets/fonts/fonts.css | 2 +- ...kturmaguntia-OFL.txt => newrocker-OFL.txt} | 6 ++++-- frontend/src/assets/fonts/newrocker.woff2 | Bin 0 -> 29264 bytes .../src/assets/fonts/unifrakturmaguntia.woff2 | Bin 26512 -> 0 bytes frontend/src/assets/pagerite.css | 2 +- 8 files changed, 23 insertions(+), 11 deletions(-) rename frontend/src/assets/fonts/{unifrakturmaguntia-OFL.txt => newrocker-OFL.txt} (92%) create mode 100644 frontend/src/assets/fonts/newrocker.woff2 delete mode 100644 frontend/src/assets/fonts/unifrakturmaguntia.woff2 diff --git a/AGENTS.md b/AGENTS.md index 9a2c1fc..1717e4a 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -117,7 +117,7 @@ not for the public pages. See `docs/design-principles.md` for the design. an orange racing-tab nav clipped with a bezier `shape()`), `pygments.css`, and `fonts/` (self-hosted Source Sans 3/Source Serif 4/Fraunces/Literata/Cormorant/Playfair - Display/Inter/Montserrat/Fira Code/Cause/Exo 2/UnifrakturMaguntia + Display/Inter/Montserrat/Fira Code/Cause/Exo 2/New Rocker variable woff2). The `::view-transition*` block at the end of `pagerite.css` (from termotohtori.fi) is fragile — do not tweak. - Vite builds ES-module `.js` outputs; the backend renders `