Skip to content

Switch to vitepress/theme-without-fonts to stop VitePress shipping it…#235

Merged
amavashev merged 1 commit intomainfrom
claude/improve-doc-font-sS0TQ
Mar 25, 2026
Merged

Switch to vitepress/theme-without-fonts to stop VitePress shipping it…#235
amavashev merged 1 commit intomainfrom
claude/improve-doc-font-sS0TQ

Conversation

@amavashev
Copy link
Contributor

…s own Inter

The default vitepress/theme import pulls in fonts.css which declares 14 Inter @font-face rules with font-display: swap plus a Google Fonts @import. These competed with our custom font-display: optional declarations, causing the visible font swap. Both index.ts and Layout.vue imported vitepress/theme.

Also corrects the custom.css comment: font-display: optional avoids late visible swap but does not guarantee the custom font loads on every first paint.

…s own Inter

The default vitepress/theme import pulls in fonts.css which declares 14
Inter @font-face rules with font-display: swap plus a Google Fonts @import.
These competed with our custom font-display: optional declarations, causing
the visible font swap. Both index.ts and Layout.vue imported vitepress/theme.

Also corrects the custom.css comment: font-display: optional avoids late
visible swap but does not guarantee the custom font loads on every first paint.
@amavashev amavashev merged commit f1e56a5 into main Mar 25, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants