MCPcopy Create free account
hub / github.com/arctic-cli/interface / Font

Function Font

packages/ui/src/components/font.tsx:5–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import tx02 from "../assets/fonts/tx-02.woff2"
4
5export const Font = () => {
6 return (
7 <>
8 <Style>{`
9 @font-face {
10 font-family: "Geist";
11 src: url("${geist}") format("woff2-variations");
12 font-display: swap;
13 font-style: normal;
14 font-weight: 100 900;
15 }
16 @font-face {
17 font-family: "Geist Fallback";
18 src: local("Arial");
19 size-adjust: 100%;
20 ascent-override: 97%;
21 descent-override: 25%;
22 line-gap-override: 1%;
23 }
24 @font-face {
25 font-family: "Berkeley Mono";
26 src: url("${tx02}") format("woff2-variations");
27 font-display: swap;
28 font-style: normal;
29 font-weight: 400 700;
30 }
31 @font-face {
32 font-family: "Berkeley Mono Fallback";
33 src: local("Courier New");
34 size-adjust: 100%;
35 ascent-override: 97%;
36 descent-override: 25%;
37 line-gap-override: 1%;
38 }
39 `}</Style>
40 <Link rel="preload" href={geist} as="font" type="font/woff2" crossorigin="anonymous" />
41 <Link rel="preload" href={tx02} as="font" type="font/woff2" crossorigin="anonymous" />
42 </>
43 )
44}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected