Skip to content

Commit

Permalink
chore: switch to @nuxt/fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Mar 4, 2024
1 parent 0cd3a5b commit d9b8c25
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 56 deletions.
14 changes: 1 addition & 13 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,11 @@ export default defineNuxtConfig({
modules: [
'@nuxt/content',
'@nuxt/ui',
'@nuxtjs/fontaine',
'@nuxtjs/google-fonts'
'@nuxt/fonts'
],
ui: {
icons: ['heroicons', 'simple-icons']
},
// Fonts
fontMetrics: {
fonts: ['DM Sans']
},
googleFonts: {
display: 'swap',
download: true,
families: {
'DM+Sans': [400, 500, 600, 700]
}
},
devtools: {
enabled: true
},
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@
"@iconify-json/heroicons": "^1.1.20",
"@iconify-json/simple-icons": "^1.1.92",
"@nuxt/content": "^2.12.0",
"@nuxt/fonts": "^0.0.1",
"@nuxt/ui-pro": "^1.0.1",
"@nuxtjs/fontaine": "^0.4.1",
"@nuxtjs/google-fonts": "^3.1.3",
"nuxt": "^3.10.3"
},
"devDependencies": {
Expand Down
106 changes: 66 additions & 40 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default <Partial<Config>>{
theme: {
extend: {
fontFamily: {
sans: ['DM Sans', 'DM Sans fallback', ...defaultTheme.fontFamily.sans]
sans: ['DM Sans', ...defaultTheme.fontFamily.sans]
}
}
}
Expand Down

0 comments on commit d9b8c25

Please sign in to comment.