Skip to content

Commit

Permalink
refactor(font): unocss theme font family rather than loading the font
Browse files Browse the repository at this point in the history
  • Loading branch information
damienrobinson committed Nov 17, 2024
1 parent ef3e674 commit 5e2366f
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
}),
},
},

Expand Down

0 comments on commit 5e2366f

Please sign in to comment.