umanggarg Claude Sonnet 4.6 commited on
Commit
87f6ea2
Β·
1 Parent(s): ac97540

fix: serve Anthropic fonts locally instead of from external CDN

Browse files

HuggingFace CSP may block cross-origin font loading. Downloaded all three
font files (Anthropic Sans Roman/Italic + Anthropic Mono, ~308KB total) to
ui/public/fonts/ so they're served from the same domain as the app.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

Files changed (1) hide show
  1. ui/src/index.css +3 -3
ui/src/index.css CHANGED
@@ -10,21 +10,21 @@
10
  ════════════════════════════════════════════════════════════════════════ */
11
  @font-face {
12
  font-family: "Anthropic Sans";
13
- src: url(https://cdn.prod.website-files.com/67ce28cfec624e2b733f8a52/69971a00a3295036497e1a28_AnthropicSans-Roman-Web.woff2) format("woff2");
14
  font-weight: 300 800;
15
  font-style: normal;
16
  font-display: swap;
17
  }
18
  @font-face {
19
  font-family: "Anthropic Sans";
20
- src: url(https://cdn.prod.website-files.com/67ce28cfec624e2b733f8a52/69971a016067bf14b9b8f48d_AnthropicSans-Italic-Web.woff2) format("woff2");
21
  font-weight: 300 800;
22
  font-style: italic;
23
  font-display: swap;
24
  }
25
  @font-face {
26
  font-family: "Anthropic Mono";
27
- src: url(https://cdn.prod.website-files.com/67ce28cfec624e2b733f8a52/69971a2e55d24d61bc045b1a_AnthropicMono-Roman-Web.woff2) format("woff2");
28
  font-weight: 300 800;
29
  font-style: normal;
30
  font-display: swap;
 
10
  ════════════════════════════════════════════════════════════════════════ */
11
  @font-face {
12
  font-family: "Anthropic Sans";
13
+ src: url(/fonts/69971a00a3295036497e1a28_AnthropicSans-Roman-Web.woff2) format("woff2");
14
  font-weight: 300 800;
15
  font-style: normal;
16
  font-display: swap;
17
  }
18
  @font-face {
19
  font-family: "Anthropic Sans";
20
+ src: url(/fonts/69971a016067bf14b9b8f48d_AnthropicSans-Italic-Web.woff2) format("woff2");
21
  font-weight: 300 800;
22
  font-style: italic;
23
  font-display: swap;
24
  }
25
  @font-face {
26
  font-family: "Anthropic Mono";
27
+ src: url(/fonts/69971a2e55d24d61bc045b1a_AnthropicMono-Roman-Web.woff2) format("woff2");
28
  font-weight: 300 800;
29
  font-style: normal;
30
  font-display: swap;