You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/theme/src/guide/customize/font.md
+8-8
Original file line number
Diff line number
Diff line change
@@ -19,22 +19,22 @@ For common font families, they can generally be divided into **serif**[^serif] a
19
19
20
20
## Modifying Fonts
21
21
22
-
The theme provides `$font-family`, `$font-family-heading` and `$font-family-mono` three variables to control the font in `.vuepress/styles/palette.scss`.
22
+
The theme provides `$vp-font`, `$vp-font-heading` and `$vp-font-mono` three variables to control the font in `.vuepress/styles/palette.scss`.
23
23
24
-
-`$font-family`: the font used on normal text
25
-
-`$font-family-heading:` font for heading elements
26
-
-`$font-family-mono`: the font used in code block and inline codes
24
+
-`$vp-font`: the font used on normal text
25
+
-`$vp-font-heading:` font for heading elements
26
+
-`$vp-font-mono`: the font used in code block and inline codes
27
27
28
28
By default, the theme uses sans serif with normal text.
29
29
30
30
::: tip Use Serifs
31
31
32
-
If you prefer serif fonts, you can modify `$font-family` to the font you want.
32
+
If you prefer serif fonts, you can modify `$vp-font` to the font you want.
33
33
34
34
The following font families are our recommended first choice for serif fonts:
35
35
36
36
```scss
37
-
$font-family: 'Georgia, -apple-system, "Nimbus Roman No9 L", sans-serif';
37
+
$vp-font: 'Georgia, -apple-system, "Nimbus Roman No9 L", sans-serif';
0 commit comments