You've already forked AstralRinth
forked from didirus/AstralRinth
Self-host fonts + Move Vite plugins export
This commit is contained in:
@@ -142,7 +142,23 @@ Add the `base` class and a theme to the `<body>` tag in `src/app.html`:
|
||||
</body>
|
||||
```
|
||||
|
||||
## `7.` Using Omorphia
|
||||
## `7.` Setup fonts
|
||||
|
||||
Copy the the `fonts/` folder from [Omorphia's repository](https://github.com/modrinth/omorphia/blob/main/docs/static/assets/fonts) and place them in the `/assets` folder at the root of your project.
|
||||
|
||||
Add the following preload tags to your head in `app.html` to speed up font loading:
|
||||
|
||||
<!-- prettier-ignore-start -->
|
||||
```html
|
||||
<head>
|
||||
<link rel="preload" href="/assets/fonts/InterRegular.woff2" as="font" type="font/woff2" crossorigin>
|
||||
<link rel="preload" href="/assets/fonts/InterBold.woff2" as="font" type="font/woff2" crossorigin>
|
||||
<link rel="preload" href="/assets/fonts/InterSemiBold.woff2" as="font" type="font/woff2" crossorigin>
|
||||
</head>
|
||||
```
|
||||
<!-- prettier-ignore-end -->
|
||||
|
||||
## `8.` Using Omorphia
|
||||
|
||||
### Developing
|
||||
|
||||
|
||||
Reference in New Issue
Block a user