fix(splash): Draw the wordmark as outlines so it can't swap fonts

The splash set its wordmark in Inter, a web font with font-display: swap. When
the font arrived late (on a cold dev start the dev server took up to seconds to
serve it), the splash showed the system font first and switched to Inter just
before fading, so the word grew and shifted. It is now an inline SVG of the same
text in Inter 500, so it renders identically from the first frame. This replaces
the previous attempt, which only moved where the font faces load.
Цей коміт міститься в:
l0ng-ai committed 2026-10-27 17:35:37 +08:00
1 джерело 866af3d9cb
коміт 482f391fd1
4 files changed
+10 -14

No files matched your search

-4
Переглянути файл
@@ -1,4 +0,0 @@
/* Linked from index.html rather than imported by global.css, so the faces are known before the
splash first paints: the dev server injects the app CSS only once the bundle runs. */
@import "@fontsource-variable/inter";
@import "@fontsource-variable/jetbrains-mono";
+2
Переглянути файл
@@ -1,3 +1,5 @@
@import "@fontsource-variable/inter";
@import "@fontsource-variable/jetbrains-mono";
@import "./tokens.css";
/* Monochrome icons default to the theme icon grey; callers override for selected / disabled. */