Skip to content

Commit

Permalink
feat: フォントをNotoSansJPに変更
Browse files Browse the repository at this point in the history
  • Loading branch information
kp047i committed Jan 7, 2025
1 parent 4d5e62e commit b62f059
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ import "./globals.css";
const outfit = Outfit({
subsets: ["latin"],
variable: "--font-outfit",
display: "swap",
});

const notoSansJP = Noto_Sans_JP({
subsets: ["latin"],
variable: "--font-noto",
display: "swap",
});

export const metadata: Metadata = {
Expand Down Expand Up @@ -64,7 +66,7 @@ export default function RootLayout({
}>) {
return (
<html lang="ja" suppressHydrationWarning>
<body className={`${outfit.variable} ${notoSansJP.variable} font-sans`}>
<body className={`${outfit.variable} ${notoSansJP.variable} font-noto`}>
{children}
</body>
</html>
Expand Down
4 changes: 4 additions & 0 deletions tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ const config: Config = {
},
border: "hsl(var(--border))",
},
fontFamily: {
outfit: ["var(--font-outfit)"],
noto: ["var(--font-noto)"],
},
},
},
plugins: [require("tailwindcss-animate")],
Expand Down

0 comments on commit b62f059

Please sign in to comment.