Skip to content

Commit 04d4d34

Browse files
fix(fonts): use nuxt fonts
1 parent 11e414e commit 04d4d34

File tree

3 files changed

+200
-9
lines changed

3 files changed

+200
-9
lines changed

nuxt.config.ts

+7
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ export default defineNuxtConfig({
129129
// 'nuxt-security',
130130
'@nuxtjs/eslint-module',
131131
'@formkit/nuxt',
132+
'@nuxt/fonts',
132133
'@unocss/nuxt',
133134
'@nuxt/content',
134135
'@nuxtjs/i18n',
@@ -167,6 +168,12 @@ export default defineNuxtConfig({
167168
},
168169
},
169170

171+
fonts: {
172+
families: [
173+
{ name: 'Roboto', provider: 'google' },
174+
],
175+
},
176+
170177
content: {
171178
highlight: {
172179
theme: {

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"@formkit/nuxt": "1.6.9",
4747
"@formkit/themes": "1.6.9",
4848
"@nuxt/content": "2.13.4",
49+
"@nuxt/fonts": "0.10.2",
4950
"@nuxtjs/robots": "3.0.0",
5051
"@vercel/analytics": "1.0.1",
5152
"cross-env": "7.0.3",

0 commit comments

Comments
 (0)