fix: override --font-family-sans in vscode theme to prevent serif fallback

The upstream UI sets --font-family-sans to Inter, but the Font component
that loads Inter via @font-face is not used in the VSCode webview. This
caused the browser to fall back to its default serif font.

Override --font-family-sans with var(--vscode-font-family) in the
kilo-vscode theme scope so all CSS references resolve to the native
VSCode UI font.
This commit is contained in:
Mark IJbema
2026-02-17 10:18:42 +01:00
parent 985d6d4367
commit 45614adc6d
+1
View File
@@ -48,6 +48,7 @@
/* ===== VS Code extension: inherit native styling ===== */
html[data-theme="kilo-vscode"] {
--font-family-sans: var(--vscode-font-family);
font-family: var(--vscode-font-family);
font-size: var(--vscode-font-size);
font-weight: var(--vscode-font-weight);