From c6293a85c12793495c29da0f947b8ce53ce48b95 Mon Sep 17 00:00:00 2001 From: Maksim Nedoshev Date: Wed, 21 Jun 2023 13:47:36 +0300 Subject: [PATCH] docs: fix fonts loading (#3492) * docs: fix fonts loading * docs: fix icon fonts loading --- packages/docs/nuxt.config.ts | 4 +++- packages/docs/pages/index.vue | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/docs/nuxt.config.ts b/packages/docs/nuxt.config.ts index 1bf69e12b8..472d966884 100644 --- a/packages/docs/nuxt.config.ts +++ b/packages/docs/nuxt.config.ts @@ -93,7 +93,9 @@ export default defineNuxtConfig({ googleFonts: { preload: true, - swap: true, + prefetch: true, + preconnect: true, + display: 'swap', families: { 'Source+Sans+Pro': { wght: [400, 600, 700], diff --git a/packages/docs/pages/index.vue b/packages/docs/pages/index.vue index d9ae5a521e..25af31a1e2 100644 --- a/packages/docs/pages/index.vue +++ b/packages/docs/pages/index.vue @@ -27,7 +27,7 @@ const isMobileMenuOpen = ref(false) @import "@/assets/variables.scss"; .landing { - font-family: Source Sans Pro; + font-family: var(--va-font-family); a { @include link(2px);