1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2026-06-23 06:15:59 -04:00

font preloading logic

This commit is contained in:
2022-05-27 12:36:58 -04:00
parent 090842a3bb
commit 804e88b7f9
6 changed files with 77 additions and 37 deletions
+12
View File
@@ -13,6 +13,18 @@ import comicNeueLatin700ItalicWoff2 from "@fontsource/comic-neue/files/comic-neu
export const name = {
regular: "Comic Neue",
};
export const preloadFonts = [
{
key: "comic-neue-400",
src: comicNeueLatin400NormalWoff2,
type: "font/woff2",
},
{
key: "comic-neue-700",
src: comicNeueLatin700NormalWoff2,
type: "font/woff2",
},
];
export const family: AtRule.FontFace[] = [
{
fontFamily: name.regular,