fonts: consolidate font-family to global stack, self-host subset emoji font
All checks were successful
CI / update (push) Successful in 8s

Remove redundant `font-family: sans-serif` from 18 component-level
declarations — they now inherit the Helvetica/Arial/Noto Sans stack
from the global `*` selector in app.css.

Add self-hosted NotoColorEmoji subset (56 KB, down from 11 MB) as
fallback for systems without the Noto Color Emoji font installed.
The subset is generated at prebuild time via pyftsubset with a fixed
list of the ~32 emojis actually used on the site.
This commit is contained in:
2026-02-16 21:34:06 +01:00
parent 2024551e0e
commit e58c8e46ef
26 changed files with 76 additions and 35 deletions

View File

@@ -106,9 +106,6 @@
});
</script>
<style>
*{
font-family: sans-serif;
}
h1{
text-align: center;
padding-block: 0.5em;

View File

@@ -14,7 +14,7 @@
</svelte:head>
<style>
a{
font-family: "Noto Color Emoji", emoji, sans-serif;
font-family: "Noto Color Emoji", "Noto Color Emoji Subset", emoji, sans-serif;
--padding: 0.5em;
font-size: 3rem;
text-decoration: none;