Skip to content

Commit ff32a02

Browse files
committed
Replace mono fonts
1 parent fabb79b commit ff32a02

4 files changed

Lines changed: 9 additions & 73 deletions

File tree

docs/public/fonts/paper-mono.woff2

38.2 KB
Binary file not shown.

docs/src/css/fonts/index.css

Lines changed: 7 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -23,81 +23,18 @@
2323
}
2424

2525
@font-face {
26-
font-family: 'SF Mono';
26+
font-family: 'Paper Mono';
2727
font-weight: normal;
28-
src: local('SFMono-Regular'), local('ui-monospace');
29-
/* Match 14px Unica to 13.25px SF Mono */
30-
size-adjust: calc(100% * 13.25 / 14);
31-
}
32-
33-
@font-face {
34-
font-family: 'SF Mono';
35-
font-weight: bold;
36-
src: local('SFMono-Bold'), local('ui-monospace');
37-
/* Match 14px Unica to 13.25px SF Mono */
38-
size-adjust: calc(100% * 13.25 / 14);
39-
}
40-
41-
@font-face {
42-
font-family: Menlo;
43-
font-weight: normal;
44-
src: local('Menlo-Regular');
45-
/* Match other monospace fonts to SF Mono in width */
46-
size-adjust: calc(100% * 13.5 / 14);
47-
ascent-override: 95%;
48-
}
49-
50-
@font-face {
51-
font-family: Menlo;
52-
font-weight: bold;
53-
src: local('Menlo-Bold');
54-
/* Match other monospace fonts to SF Mono in width */
55-
size-adjust: calc(100% * 13.5 / 14);
56-
ascent-override: 95%;
57-
}
58-
59-
@font-face {
60-
font-family: Consolas;
61-
font-weight: normal;
62-
src: local('Consolas');
63-
/* Match other monospace fonts to SF Mono in width */
64-
size-adjust: calc(100% * 14.75 / 14);
65-
ascent-override: 85%;
66-
}
67-
68-
@font-face {
69-
font-family: Consolas;
70-
font-weight: bold;
71-
src: local('Consolas-Bold');
72-
/* Match other monospace fonts to SF Mono in width */
73-
size-adjust: calc(100% * 14.75 / 14);
74-
ascent-override: 85%;
75-
}
76-
77-
@font-face {
78-
font-family: 'DejaVu Sans Mono';
79-
font-weight: normal;
80-
src: local('DejaVuSansMono');
28+
src: url('/fonts/paper-mono.woff2') format('woff2');
29+
/* Reduce the size to balance with the sans-serif fonts */
8130
size-adjust: calc(100% * 13.5 / 14);
8231
}
8332

8433
@font-face {
85-
font-family: 'DejaVu Sans Mono';
34+
font-family: 'Paper Mono';
8635
font-weight: bold;
87-
src: local('DejaVuSansMono-Bold');
36+
src: url('/fonts/paper-mono.woff2') format('woff2');
37+
font-variation-settings: 'wght' 650;
38+
/* Reduce the size to balance with the sans-serif fonts */
8839
size-adjust: calc(100% * 13.5 / 14);
8940
}
90-
91-
@font-face {
92-
font-family: Inconsolata;
93-
font-weight: normal;
94-
src: local('Inconsolata-Regular');
95-
size-adjust: calc(100% * 15.75 / 14);
96-
}
97-
98-
@font-face {
99-
font-family: Inconsolata;
100-
font-weight: bold;
101-
src: local('Inconsolata-Bold');
102-
size-adjust: calc(100% * 15.75 / 14);
103-
}

docs/src/css/index.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
--color-red-800: var(--color-red);
103103

104104
/* Typography */
105-
--font-mono: 'SF Mono', 'Menlo', 'DejaVu Sans Mono', 'Consolas', 'Inconsolata', monospace;
105+
--font-mono: 'Paper Mono', monospace;
106106
--font-sans: 'Die Grotesk A', system-ui, sans-serif;
107107
--font-sans-b: 'Die Grotesk B', system-ui, sans-serif;
108108
--font-serif: Georgia, 'Times New Roman', Times, 'Noto Serif', 'DejaVu Serif', serif;

docs/src/css/theme-redesign.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
--font-sans-b:
1010
'die grotesk b', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', arial,
1111
sans-serif;
12-
--font-mono:
13-
'Söhne Mono', 'SF Mono', Menlo, 'DejaVu Sans Mono', Consolas, Inconsolata, monospace;
12+
--font-mono: 'Paper Mono', monospace;
1413
--font-serif: Georgia, 'Times New Roman', Times, 'Noto Serif', 'DejaVu Serif', serif;
1514

1615
/* Font size */

0 commit comments

Comments
 (0)