From 5e2366fb10a112646807aa7273037256596d6514 Mon Sep 17 00:00:00 2001 From: Damien Robinson Date: Sun, 17 Nov 2024 16:06:27 +1000 Subject: [PATCH] refactor(font): unocss theme font family rather than loading the font --- nuxt.config.ts | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/nuxt.config.ts b/nuxt.config.ts index 633120484..08dc0a44b 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -150,19 +150,10 @@ export default defineNuxtConfig({ unocss: { typography: true, - webFonts: { - provider: 'none', - fonts: { + theme: { + fontFamily: { sans: 'Roboto', }, - processors: createLocalFontProcessor({ - // Directory to cache the fonts - cacheDir: 'node_modules/.cache/unocss/fonts', - // Directory to save the fonts assets - fontAssetsDir: 'public/assets/fonts', - // Base URL to serve the fonts from the client - fontServeBaseUrl: '/assets/fonts', - }), }, },