NEAR-DevHub / neardevhub-bos

DevHub Portal Product UI (Hosted BOS) – Includes other instances (e.g. Infrastructure, Events)
https://neardevhub.org
MIT License
24 stars 23 forks source link

Install custom fonts #509

Closed sashapais closed 4 weeks ago

sashapais commented 11 months ago

The objective is to make fonts on the platform consistent with the new brand. Would be great to have the ability to add custom fonts, so that we continue to build DevHub's identity through typography too.

Font Assets

ailisp commented 11 months ago

Thanks @sashapais ! We'll need some research to confirm we can add custom font on BOS and if so, a proper way to integrate it into the build process.

itexpert120 commented 10 months ago
  @font-face {
    font-family: "Mona Sans";
    src: url("https://raw.githubusercontent.com/itexpert120/fonts/main/Mona-Sans.woff2")
        format("woff2 supports variations"),
      url("https://raw.githubusercontent.com/itexpert120/fonts/main/Mona-Sans.woff2")
        format("woff2-variations");
    font-weight: 200 900;
    font-stretch: 75% 125%;
  }

  font-family: "Mona Sans" !important;

Using CSS like this, we can use custom fonts

itexpert120 commented 10 months ago

@ori-near Can you share with me the font so I can work on this?