Skip to content

Commit

Permalink
Use a bundled font for consistency on non-Apple devices
Browse files Browse the repository at this point in the history
  • Loading branch information
lightningboltemoji committed Sep 10, 2024
1 parent 073024e commit fe677f0
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 3 deletions.
Binary file modified bun.lockb
Binary file not shown.
6 changes: 3 additions & 3 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
export default defineNuxtConfig({
compatibilityDate: "2024-04-03",
devServer: { host: "0.0.0.0" },
devtools: { enabled: true },
modules: ["@nuxtjs/tailwindcss", "nuxt-svgo"],
devtools: { enabled: false },
modules: ["@nuxtjs/tailwindcss", "nuxt-svgo", "@nuxt/fonts"],
ssr: false,
svgo: {
defaultImport: "component",
Expand All @@ -14,4 +14,4 @@ export default defineNuxtConfig({
viewport: "width=device-width, initial-scale=1.0, viewport-fit=cover",
},
},
});
});
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"postinstall": "nuxt prepare"
},
"dependencies": {
"@nuxt/fonts": "^0.7.2",
"@nuxtjs/tailwindcss": "^6.12.1",
"@vueuse/core": "^11.0.3",
"dayjs": "^1.11.13",
Expand Down
14 changes: 14 additions & 0 deletions tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import type { Config } from "tailwindcss";
import defaultTheme from "tailwindcss/defaultTheme";

const config: Partial<Config> = {
theme: {
extend: {
fontFamily: {
sans: ["Inter", ...defaultTheme.fontFamily.sans],
},
},
},
plugins: [],
};
export default config;

0 comments on commit fe677f0

Please sign in to comment.