@import
doesn’t work with fonts on Github. There are three ways of solving this that I can think of right now:
- Do what this person did to use fonts on Github. Seems kind of complicated to me, though.
- Download the fonts from Github to your computer (although, you may not be able to do this for other devices)
- My recommendation is to embed the font in a CSS file. I’ve done this a few times for Obsidian themes.
- Download the fonts you want to use.
- Use this website to generate a stylesheet for you with the font files you downloaded. Make sure you turn Base64-encode on. Then, paste the generated file’s content into a CSS snippet, and the font should be available. You might have to do some tweaking with font names (for example, making sure all of the ‘iA Serif’ variants are named ‘iA Serif’ rather than being ‘iA Serif Bold’, 'iA Serif Italic).