[WEB-5675] chore: implement fontsource as the fonts library (#8398)
This commit is contained in:
parent
df69886080
commit
3876bf054c
28 changed files with 108 additions and 104 deletions
|
|
@ -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 }) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue