mirror of
https://github.com/AykutSarac/jsoncrack.com.git
synced 2025-01-12 19:02:53 +08:00
improve font performance
This commit is contained in:
parent
39c5284ae7
commit
f85fd10b8e
@ -5,7 +5,8 @@ import styled, { DefaultTheme } from "styled-components";
|
||||
const robotoMono = Roboto_Mono({
|
||||
weight: "500",
|
||||
subsets: ["latin"],
|
||||
display: "auto"
|
||||
display: "swap",
|
||||
fallback: ["Arial, Helvetica, sans-serif", "Tahoma, Verdana, sans-serif"]
|
||||
});
|
||||
|
||||
function getTypeColor(value: string, theme: DefaultTheme) {
|
||||
|
@ -14,7 +14,8 @@ import { ThemeProvider } from "styled-components";
|
||||
const monaSans = localFont({
|
||||
src: "./Mona-Sans.woff2",
|
||||
variable: "--mona-sans",
|
||||
display: "auto",
|
||||
display: "swap",
|
||||
fallback: ["Arial, Helvetica, sans-serif", "Tahoma, Verdana, sans-serif"]
|
||||
});
|
||||
|
||||
if (process.env.NODE_ENV !== "development") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user