[WEB-5675] chore: implement fontsource as the fonts library (#8398)

This commit is contained in:
Aaryan Khandelwal 2025-12-19 16:21:04 +05:30 committed by GitHub
parent df69886080
commit 3876bf054c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
28 changed files with 108 additions and 104 deletions

View file

@ -2,8 +2,6 @@ import Script from "next/script";
// styles
import "@/styles/globals.css";
import "@/styles/power-k.css";
import "@/styles/emoji.css";
import { SITE_DESCRIPTION, SITE_NAME } from "@plane/constants";

View file

@ -20,6 +20,11 @@ import type { Route } from "./+types/root";
// local
import { CustomErrorComponent } from "./error";
import { AppProvider } from "./provider";
// fonts
import "@fontsource-variable/inter";
import interVariableWoff2 from "@fontsource-variable/inter/files/inter-latin-wght-normal.woff2?url";
import "@fontsource/material-symbols-rounded";
import "@fontsource/ibm-plex-mono";
const APP_TITLE = "Plane | Simple, extensible, open-source project management tool.";
@ -33,6 +38,13 @@ export const links: LinksFunction = () => [
{ rel: "apple-touch-icon", sizes: "512x512", href: icon512 },
{ rel: "manifest", href: "/manifest.json" },
{ rel: "stylesheet", href: globalStyles },
{
rel: "preload",
href: interVariableWoff2,
as: "font",
type: "font/woff2",
crossOrigin: "anonymous",
},
];
export function Layout({ children }: { children: ReactNode }) {