Skip to content

Commit

Permalink
chore(core): add roboto mono font
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgemoya committed Nov 20, 2024
1 parent bf5a15d commit 03e643e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions core/app/[locale]/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Analytics } from '@vercel/analytics/react';
import { SpeedInsights } from '@vercel/speed-insights/next';
import type { Metadata } from 'next';
import { DM_Serif_Text, Inter } from 'next/font/google';
import { DM_Serif_Text, Inter, Roboto_Mono } from 'next/font/google';
import { NextIntlClientProvider } from 'next-intl';
import { getMessages, setRequestLocale } from 'next-intl/server';
import { PropsWithChildren } from 'react';
Expand All @@ -28,6 +28,12 @@ const dm_serif_text = DM_Serif_Text({
variable: '--font-family-heading',
});

const roboto_mono = Roboto_Mono({
subsets: ['latin'],
display: 'swap',
variable: '--font-family-mono',
});

const RootLayoutMetadataQuery = graphql(`
query RootLayoutMetadataQuery {
site {
Expand Down Expand Up @@ -102,7 +108,7 @@ export default async function RootLayout({ params, children }: Props) {

return (
<html lang={locale}>
<body className={`${inter.variable} ${dm_serif_text.variable}`}>
<body className={`${inter.variable} ${dm_serif_text.variable} ${roboto_mono.variable}`}>
<Notifications />
<NextIntlClientProvider locale={locale} messages={messages}>
<Providers>{children}</Providers>
Expand Down

0 comments on commit 03e643e

Please sign in to comment.