File tree Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Original file line number Diff line number Diff line change 11import { type ReactNode } from "react" ;
22import { type Metadata , type Viewport } from "next" ;
3+ import { Philosopher , Lora } from "next/font/google" ;
34import Header from "@azure-fundamentals/components/Header" ;
45import Footer from "@azure-fundamentals/components/Footer" ;
56import ApolloProvider from "@azure-fundamentals/components/ApolloProvider" ;
@@ -9,6 +10,20 @@ import { ThemeProvider } from "@azure-fundamentals/contexts/ThemeContext";
910import { TrialWarning } from "@azure-fundamentals/components/TrialWarning" ;
1011import "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+
1227export const viewport : Viewport = {
1328 themeColor : "#3f51b5" ,
1429 width : "device-width" ,
@@ -107,7 +122,9 @@ type RootLayoutProps = {
107122export 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 >
Original file line number Diff line number Diff 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+
You can’t perform that action at this time.
0 commit comments