typography: load IBM Plex Mono for body text via next/font/google
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import type { Metadata } from 'next'
|
||||
import { Fraunces, JetBrains_Mono } from 'next/font/google'
|
||||
import { Fraunces, IBM_Plex_Mono, JetBrains_Mono } from 'next/font/google'
|
||||
import { ThemeProvider } from '@wrksz/themes/next'
|
||||
import './globals.css'
|
||||
import 'katex/dist/katex.min.css'
|
||||
@@ -23,6 +23,14 @@ const jetbrainsMono = JetBrains_Mono({
|
||||
variable: '--font-jetbrains-mono',
|
||||
})
|
||||
|
||||
const plexMono = IBM_Plex_Mono({
|
||||
weight: ['300', '400'],
|
||||
subsets: ['latin'],
|
||||
display: 'swap',
|
||||
adjustFontFallback: false,
|
||||
variable: '--font-plex-mono',
|
||||
})
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: { template: '%s | blog', default: 'blog' },
|
||||
description: 'A sleek static blog with code and math.',
|
||||
@@ -30,7 +38,7 @@ export const metadata: Metadata = {
|
||||
|
||||
export default function RootLayout({ children }: { children: React.ReactNode }) {
|
||||
return (
|
||||
<html lang="en" className={`${fraunces.variable} ${jetbrainsMono.variable}`} suppressHydrationWarning>
|
||||
<html lang="en" className={`${fraunces.variable} ${jetbrainsMono.variable} ${plexMono.variable}`} suppressHydrationWarning>
|
||||
<body className={`antialiased bg-canvas text-ink ${fraunces.className}`}>
|
||||
<ThemeProvider
|
||||
attribute="class"
|
||||
|
||||
Reference in New Issue
Block a user