Skip to content

Commit 06cc266

Browse files
danditomasoCopilot
andauthored
fix(ui): removed internet hosted fonts from app (#955)
* fix(ui): removed internet hosted fonts from app * Update packages/web/src/components/generic/Mono.tsx Co-authored-by: Copilot <[email protected]> * Update packages/web/src/components/UI/Typography/Code.tsx Co-authored-by: Copilot <[email protected]> * removed unsupported font extention * formatter fix --------- Co-authored-by: Copilot <[email protected]>
1 parent 295755e commit 06cc266

File tree

5 files changed

+18
-12
lines changed

5 files changed

+18
-12
lines changed

packages/web/index.html

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,6 @@
1111

1212
<link rel="manifest" href="site.webmanifest" />
1313
<link rel="mask-icon" href="logo_black.svg" color="#67ea94" />
14-
<link
15-
rel="stylesheet"
16-
href="https://rsms.me/inter/inter.css"
17-
crossorigin="anonymous"
18-
/>
19-
<link
20-
rel="stylesheet"
21-
href="https://cdn.jsdelivr.net/npm/@xz/fonts@1/serve/cascadia-code.min.css"
22-
crossorigin="anonymous"
23-
/>
2414
<link
2515
rel="stylesheet"
2616
href="src/index.css"
379 KB
Binary file not shown.
344 KB
Binary file not shown.

packages/web/src/components/UI/Typography/Code.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export interface CodeProps {
33
}
44

55
export const Code = ({ children }: CodeProps) => (
6-
<code className="relative rounded-sm bg-slate-100 px-[0.3rem] py-[0.2rem] font-mono text-sm font-semibold text-slate-900 dark:bg-slate-800 dark:text-slate-400">
6+
<code className="relative rounded-sm bg-slate-100 px-[0.3rem] py-[0.2rem] text-sm font-semibold font-mono text-slate-900 dark:bg-slate-800 dark:text-slate-400">
77
{children}
88
</code>
99
);

packages/web/src/index.css

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
@font-face {
2+
font-family: 'Inter var';
3+
font-style: normal;
4+
font-weight: 100 900;
5+
font-display: swap;
6+
src: url('/fonts/InterVariable.woff2') format('woff2');
7+
}
8+
9+
@font-face {
10+
font-family: 'Inter var';
11+
font-style: italic;
12+
font-weight: 100 900;
13+
font-display: swap;
14+
src: url('/fonts/InterVariable-Italic.woff2') format('woff2');
15+
}
16+
117
@import "tailwindcss";
218
/* @import '@meshtastic/ui/theme/default.css'; */
319
/* @source "../node_modules/@meshtastic/ui"; */
@@ -11,7 +27,7 @@
1127

1228
@theme {
1329
--font-mono:
14-
Cascadia Code, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
30+
ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
1531
"Liberation Mono", "Courier New", monospace;
1632
--font-sans:
1733
Inter var, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",

0 commit comments

Comments
 (0)