Skip to content

Commit 7f2dc23

Browse files
committed
fix: add webfont
Signed-off-by: Innei <[email protected]>
1 parent 27eb1c6 commit 7f2dc23

File tree

3 files changed

+44
-2
lines changed

3 files changed

+44
-2
lines changed

src/styles/index.css

+1
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@
77
@import './image-zoom.css';
88
@import './toastify.css';
99
@import './theme.css';
10+
@import './webfont.css';

src/styles/tailwindcss.css

-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/styles/webfont.css

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
@font-face {
2+
font-family: 'OperatorMonoSSmLig Nerd Font';
3+
src:
4+
url('https://cdn.jsdelivr.net/gh/Innei/[email protected]/webfont/OperatorMonoSSmLigNerdFontAAEOPSLMDI-Italic.woff2')
5+
format('woff2'),
6+
url('https://cdn.jsdelivr.net/gh/Innei/[email protected]/webfont/OperatorMonoSSmLigNerdFontAAEOPSLMDI-Italic.woff')
7+
format('woff');
8+
font-weight: normal;
9+
font-style: italic;
10+
}
11+
12+
@font-face {
13+
font-family: 'OperatorMonoSSmLig Nerd Font';
14+
src:
15+
url('https://cdn.jsdelivr.net/gh/Innei/[email protected]/webfont/OperatorMonoSSmLigNerdFontAAEOPSLMDI-Book.woff2')
16+
format('woff2'),
17+
url('https://cdn.jsdelivr.net/gh/Innei/[email protected]/webfont/OperatorMonoSSmLigNerdFontAAEOPSLMDI-Book.woff')
18+
format('woff');
19+
font-weight: normal;
20+
font-style: normal;
21+
}
22+
23+
@font-face {
24+
font-family: 'Operator Mono';
25+
src:
26+
url('https://cdn.jsdelivr.net/gh/Innei/[email protected]/webfont/OperatorMonoSSmLigNerdFontAAEOPSLMDI-Italic.woff2')
27+
format('woff2'),
28+
url('https://cdn.jsdelivr.net/gh/Innei/[email protected]/webfont/OperatorMonoSSmLigNerdFontAAEOPSLMDI-Italic.woff')
29+
format('woff');
30+
font-weight: normal;
31+
font-style: italic;
32+
}
33+
34+
@font-face {
35+
font-family: 'Operator Mono';
36+
src:
37+
url('https://cdn.jsdelivr.net/gh/Innei/[email protected]/webfont/OperatorMonoSSmLigNerdFontAAEOPSLMDI-Book.woff2')
38+
format('woff2'),
39+
url('https://cdn.jsdelivr.net/gh/Innei/[email protected]/webfont/OperatorMonoSSmLigNerdFontAAEOPSLMDI-Book.woff')
40+
format('woff');
41+
font-weight: normal;
42+
font-style: normal;
43+
}

0 commit comments

Comments
 (0)