Skip to content

Commit 18fdce1

Browse files
committed
feat(fonts): register Vazirmatn variable font and apply to fa locale
1 parent 3b80362 commit 18fdce1

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

assets/css/custom.scss

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,14 @@ blockquote {
251251
-webkit-appearance: none;
252252
}
253253

254+
@font-face {
255+
font-family: 'Vazirmatn';
256+
src: url('/assets/fonts/Vazirmatn-Variable.woff2') format('woff2-variations');
257+
font-weight: 100 900;
258+
font-style: normal;
259+
font-display: swap;
260+
}
261+
254262
*:lang(fa) {
255263
.article-body,
256264
.lead,
@@ -259,4 +267,8 @@ blockquote {
259267
h3 {
260268
direction: rtl; /* Right to Left */
261269
}
270+
271+
* {
272+
font-family: 'Vazirmatn', sans-serif;
273+
}
262274
}

0 commit comments

Comments
 (0)