mirror of
https://github.com/AykutSarac/jsoncrack.com.git
synced 2025-01-27 15:22:56 +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({
|
const robotoMono = Roboto_Mono({
|
||||||
weight: "500",
|
weight: "500",
|
||||||
subsets: ["latin"],
|
subsets: ["latin"],
|
||||||
display: "auto"
|
display: "swap",
|
||||||
|
fallback: ["Arial, Helvetica, sans-serif", "Tahoma, Verdana, sans-serif"]
|
||||||
});
|
});
|
||||||
|
|
||||||
function getTypeColor(value: string, theme: DefaultTheme) {
|
function getTypeColor(value: string, theme: DefaultTheme) {
|
||||||
|
@ -14,7 +14,8 @@ import { ThemeProvider } from "styled-components";
|
|||||||
const monaSans = localFont({
|
const monaSans = localFont({
|
||||||
src: "./Mona-Sans.woff2",
|
src: "./Mona-Sans.woff2",
|
||||||
variable: "--mona-sans",
|
variable: "--mona-sans",
|
||||||
display: "auto",
|
display: "swap",
|
||||||
|
fallback: ["Arial, Helvetica, sans-serif", "Tahoma, Verdana, sans-serif"]
|
||||||
});
|
});
|
||||||
|
|
||||||
if (process.env.NODE_ENV !== "development") {
|
if (process.env.NODE_ENV !== "development") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user