From c3c799a40913c03e2733463aa9bd4a5aefea3cec Mon Sep 17 00:00:00 2001 From: josh Date: Sat, 12 Sep 2026 12:08:17 -0400 Subject: [PATCH] Emit self-hosted fonts by importing from JS, not CSS @import MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Firefox's console was spammed with "downloadable font: download failed status=2147746065" for every @fontsource family — Inter, Alfa Slab One, JetBrains Mono. Root cause: the built CSS referenced ./files/inter-latin-400-normal.woff2 but no font files were ever emitted to build/client/_app/immutable/assets/. Vite's CSS `@import` inlines the imported file's *text* but doesn't crawl the resulting url() references to emit their assets. Since tokens.css was doing `@import '@fontsource/inter/400.css'` and being pulled into +layout.svelte via a Svelte