fix: add display: 'swap' for fonts (#21)

This commit is contained in:
Doğukan Çavuş
2023-01-27 11:50:01 +03:00
committed by GitHub
parent f4b9344786
commit 636c7afa00
3 changed files with 4 additions and 0 deletions

View File

@@ -11,6 +11,7 @@ import { ThemeProvider } from "@/components/theme-provider"
const fontSans = FontSans({
subsets: ["latin"],
variable: "--font-sans",
display: 'swap',
})
interface RootLayoutProps {

View File

@@ -8,11 +8,13 @@ import {
const fontSans = FontSans({
subsets: ["latin"],
variable: "--font-sans",
display: 'swap',
})
const fontMono = FontMono({
subsets: ["latin"],
variable: "--font-mono",
display: 'swap',
})
export function Fonts() {

View File

@@ -7,6 +7,7 @@ import "@/styles/globals.css"
const fontSans = FontSans({
subsets: ["latin"],
variable: "--font-sans",
display: 'swap',
})
export default function App({ Component, pageProps }: AppProps) {