Skip to content

Commit d241b39

Browse files
chore: change font to Lora & Philosopher
1 parent bd4f545 commit d241b39

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

app/layout.tsx

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { type ReactNode } from "react";
22
import { type Metadata, type Viewport } from "next";
3+
import { Philosopher, Lora } from "next/font/google";
34
import Header from "@azure-fundamentals/components/Header";
45
import Footer from "@azure-fundamentals/components/Footer";
56
import ApolloProvider from "@azure-fundamentals/components/ApolloProvider";
@@ -9,6 +10,20 @@ import { ThemeProvider } from "@azure-fundamentals/contexts/ThemeContext";
910
import { TrialWarning } from "@azure-fundamentals/components/TrialWarning";
1011
import "styles/globals.css";
1112

13+
const philosopher = Philosopher({
14+
weight: ["400"],
15+
subsets: ["latin"],
16+
display: "swap",
17+
variable: "--font-philosopher",
18+
});
19+
20+
const lora = Lora({
21+
weight: ["400"],
22+
subsets: ["latin"],
23+
display: "swap",
24+
variable: "--font-lora",
25+
});
26+
1227
export const viewport: Viewport = {
1328
themeColor: "#3f51b5",
1429
width: "device-width",
@@ -107,7 +122,9 @@ type RootLayoutProps = {
107122
export default function RootLayout({ children }: RootLayoutProps) {
108123
return (
109124
<html lang="en" className="dark">
110-
<body className="bg-gray-50 dark:bg-gray-950 text-gray-900 dark:text-gray-100 transition-colors duration-200">
125+
<body
126+
className={`${lora.className} ${philosopher.variable} bg-gray-50 dark:bg-gray-950 text-gray-900 dark:text-gray-100 transition-colors duration-200`}
127+
>
111128
<ThemeProvider>
112129
<ApolloProvider>
113130
<AuthProvider>

styles/globals.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -628,3 +628,12 @@ input[type="text"]:focus {
628628
box-shadow: 0 0 0 2px rgba(63, 81, 181, 0.2) !important;
629629
}
630630

631+
/* Apply Philosopher font to headings and buttons */
632+
h1, h2, h3, h4, h5, h6 {
633+
font-family: var(--font-philosopher), serif;
634+
}
635+
636+
button, .btn-primary {
637+
font-family: var(--font-philosopher), serif;
638+
}
639+

0 commit comments

Comments
 (0)