Skip to content

Commit

Permalink
Merge pull request #139 from sugarforever/bugfix/google-fonts-not-dow…
Browse files Browse the repository at this point in the history
…nloaded

bugfix: google fonts
  • Loading branch information
sugarforever authored Mar 22, 2024
2 parents f554a67 + c32d104 commit 0a421e2
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 1 deletion.
2 changes: 1 addition & 1 deletion assets/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ pre code.hljs {

html, body, #__nuxt {
height: 100%;
font-family: Noto Sans, SF Pro SC, SF Pro Text, SF Pro Icons, PingFang SC, Helvetica Neue, Helvetica, Arial, sans-serif;
font-family: "Noto Sans", SF Pro SC, SF Pro Text, SF Pro Icons, PingFang SC, Helvetica Neue, Helvetica, Arial, sans-serif;
}
16 changes: 16 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,22 @@ export default defineNuxtConfig({
modules: [
'@nuxt/ui',
'@vueuse/nuxt',
['@nuxtjs/google-fonts', {
families: {
'Noto Sans': true,
'Josefin+Sans': true,
Lato: [100, 300],
Raleway: {
wght: [100, 400],
ital: [100]
},
Inter: '200..700',
'Crimson Pro': {
wght: '200..900',
ital: '200..700',
}
}
}]
],
ui: {
icons: ['heroicons', 'iconoir']
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"prisma-push": "prisma db push"
},
"devDependencies": {
"@nuxtjs/google-fonts": "^3.2.0",
"@types/node": "^20.11.28",
"@types/ws": "^8.5.10",
"h3": "^1.11.1",
Expand Down
23 changes: 23 additions & 0 deletions pnpm-lock.yaml

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

0 comments on commit 0a421e2

Please sign in to comment.