Skip to content

Commit e2eaa45

Browse files
authored
feat: self hosted fonts (#235)
1 parent 2dd8713 commit e2eaa45

File tree

8 files changed

+56
-2
lines changed

8 files changed

+56
-2
lines changed
45.5 KB
Binary file not shown.
45.5 KB
Binary file not shown.
45.5 KB
Binary file not shown.
45.5 KB
Binary file not shown.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
@font-face {
2+
font-family: "Inter";
3+
font-style: normal;
4+
font-weight: 400;
5+
font-display: swap;
6+
src: url(Inter-Regular.woff2) format("woff2");
7+
}
8+
9+
@font-face {
10+
font-family: "Inter";
11+
font-style: normal;
12+
font-weight: 500;
13+
font-display: swap;
14+
src: url(Inter-Medium.woff2) format("woff2");
15+
}
16+
17+
@font-face {
18+
font-family: "Inter";
19+
font-style: normal;
20+
font-weight: 600;
21+
font-display: swap;
22+
src: url(Inter-SemiBold.woff2) format("woff2");
23+
}
24+
25+
@font-face {
26+
font-family: "Inter";
27+
font-style: normal;
28+
font-weight: 700;
29+
font-display: swap;
30+
src: url(Inter-Bold.woff2) format("woff2");
31+
}
Binary file not shown.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
@font-face {
2+
font-family: "Material Symbols Outlined";
3+
font-style: normal;
4+
font-weight: 500;
5+
font-display: swap;
6+
src: url("Material-Symbols-Outlined.woff2") format("woff2");
7+
}
8+
9+
.material-symbols-outlined {
10+
font-family: "Material Symbols Outlined";
11+
font-weight: normal;
12+
font-style: normal;
13+
font-size: 24px;
14+
line-height: 1;
15+
letter-spacing: normal;
16+
text-transform: none;
17+
display: inline-block;
18+
white-space: nowrap;
19+
word-wrap: normal;
20+
direction: ltr;
21+
-moz-font-feature-settings: "liga";
22+
-moz-osx-font-smoothing: grayscale;
23+
}

src/unfold/templates/unfold/layouts/skeleton.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
<head>
1818
<title>{% block title %}{% endblock %}</title>
1919

20-
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
21-
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@48,500,0,0" rel="stylesheet"/>
20+
<link href="{% static "unfold/fonts/inter/styles.css" %}" rel="stylesheet">
21+
<link href="{% static "unfold/fonts/material-symbols/styles.css" %}" rel="stylesheet">
2222

2323
{% for style in styles %}
2424
<link href="{{ style }}" rel="stylesheet">

0 commit comments

Comments
 (0)