Skip to content

Commit bcc7c71

Browse files
committed
added font changes
1 parent 500a445 commit bcc7c71

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

app/[lang]/layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from "react";
22
import type { Metadata } from "next";
3-
import { victor_mono, roboto } from "../fonts";
3+
import { ubuntu_mono, roboto } from "../fonts";
44
import { Locale } from "i18n-config";
55
import Footer from "app/components/footer";
66
import { getDictionary } from "get-dictionary";
@@ -50,7 +50,7 @@ export default function RootLayout({
5050
return (
5151
<html lang={params.lang} className="dark">
5252
<body
53-
className={`overflow-x-hidden ${victor_mono.variable} ${roboto.variable} font-sans min-h-screen`}
53+
className={`overflow-x-hidden ${ubuntu_mono.variable} ${roboto.variable} font-sans min-h-screen`}
5454
>
5555
<Navbar lang={params.lang} navbardict={dict["navbar"]} />
5656
<div

app/components/postBody/postBody.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import clsx from "clsx";
22
import styles from "./PostBody.module.scss";
3-
import { victor_mono, roboto_serif } from "app/fonts";
3+
import { ubuntu_mono, roboto_serif } from "app/fonts";
44
type Props = {
55
children: React.ReactNode;
66
};
@@ -9,7 +9,7 @@ export default function PostBody({ children }: Props) {
99
return (
1010
<div
1111
className={clsx(
12-
`prose lg:prose-lg max-w-none lg:max-w-[90vw] transition-colors dark:prose-invert prose-neutral ${roboto_serif.variable} ${victor_mono.variable} font-serif`,
12+
`prose lg:prose-lg max-w-none lg:max-w-[90vw] transition-colors dark:prose-invert prose-neutral ${roboto_serif.variable} ${ubuntu_mono.variable} font-serif`,
1313
styles.postBody
1414
)}
1515
>

app/fonts.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Roboto, Dosis, Roboto_Serif, Victor_Mono } from "next/font/google";
1+
import { Roboto, Dosis, Roboto_Serif, Ubuntu_Mono } from "next/font/google";
22

33
export const dosis = Dosis({
44
subsets: ["latin"],
@@ -16,7 +16,8 @@ export const roboto_serif = Roboto_Serif({
1616
variable: "--font-roboto-serif",
1717
});
1818

19-
export const victor_mono = Victor_Mono({
19+
export const ubuntu_mono = Ubuntu_Mono({
2020
subsets: ["latin"],
21-
variable: "--font-victor-mono",
21+
weight: "400",
22+
variable: "--font-ubuntu-mono",
2223
});

tailwind.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module.exports = {
88
fontFamily: {
99
sans: ["var(--font-roboto)"],
1010
serif: ["var(--font-roboto-serif)"],
11-
mono: ["var(--font-victor-mono)"],
11+
mono: ["var(--font-ubuntu-mono)"],
1212
},
1313
},
1414
},

0 commit comments

Comments
 (0)