Skip to content

Replace Google Fonts with locally hosted fonts#2312

Closed
Copilot wants to merge 1 commit intomateu/use-local-fontsfrom
copilot/sub-pr-2311
Closed

Replace Google Fonts with locally hosted fonts#2312
Copilot wants to merge 1 commit intomateu/use-local-fontsfrom
copilot/sub-pr-2311

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Nov 5, 2025

Eliminates external dependency on Google Fonts CDN by hosting Montserrat and Inter variable fonts locally.

Changes

  • Font files: Added 4 variable font files (~3.1MB) to packages/admin-ui/public/fonts/

    • Inter-VariableFont_opsz,wght.ttf (855KB)
    • Inter-Italic-VariableFont_opsz,wght.ttf (884KB)
    • Montserrat-VariableFont_wght.ttf (673KB)
    • Montserrat-Italic-VariableFont_wght.ttf (685KB)
  • Font declarations: Created packages/admin-ui/src/fonts.scss with @font-face rules pointing to local files

  • Integration: Imported fonts.scss in packages/admin-ui/src/index.tsx

Implementation

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter/Inter-VariableFont_opsz,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: "Inter", sans-serif;
}

.section-title,
.sidenav-item,
.horizontal-navbar {
  font-family: "Montserrat", sans-serif;
}

Screenshot

UI with local fonts

Fonts render identically to before, with no external network requests to googleapis.com or gstatic.com.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copy link
Copy Markdown
Contributor Author

Copilot AI commented Nov 5, 2025

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • binaries.soliditylang.org
    • Triggering command: /usr/local/bin/node ./build/cli.bundled.js obtain --solc=0.5.16 (dns block)
  • ethereum.github.io
    • Triggering command: /usr/local/bin/node ./build/cli.bundled.js obtain --solc=0.5.16 (dns block)
  • relay.trufflesuite.com
    • Triggering command: /usr/local/bin/node ./build/cli.bundled.js obtain --solc=0.5.16 (dns block)
  • solc-bin.ethereum.org
    • Triggering command: /usr/local/bin/node ./build/cli.bundled.js obtain --solc=0.5.16 (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI changed the title [WIP] Update to use fonts locally instead of Google Fonts Replace Google Fonts with locally hosted fonts Nov 5, 2025
Copilot AI requested a review from Marketen November 5, 2025 11:06
@Marketen Marketen closed this Nov 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants