-
My goal: to use a different font. To do this, I made the following changes: // /theme/index.js
import DefaultTheme from 'vitepress/theme-without-fonts'
import './myfont.css'
export default DefaultTheme /* /theme/myfont.css */
@import url("https://cdn.jsdelivr.net/gh/CMBill/lxgw-wenkai-web/style.css");
:root {
--vp-font-family-base: "LXGW WenKai";
--vp-font-family-mono: "LXGW WenKai Mono", monospace;
} I tried to use local files, but it didn't work. After changing the path several times, I tried Google and browsed many articles. After seeing issue_3864, I used online resources to avoid path problems. Does anyone know how to do this?🙏
|
Beta Was this translation helpful? Give feedback.
Answered by
xfrqh
Oct 29, 2024
Replies: 1 comment
-
Case solved. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
xfrqh
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Case solved.
The reason was that I put the folder theme in the wrong directory, not in
.vitepress
.🤡