Add custom font styles and theme enhancements
- Created a new CSS file for font imports and defined font families for base, mono, strong, em, and h1 elements. - Added a new JavaScript file to extend the default VitePress theme, incorporating a custom layout and a Vue component for enhanced functionality. - Integrated Mermaid diagram support and included the necessary styles for it.
This commit is contained in:
22
openwiki/theme/fonts.css
Normal file
22
openwiki/theme/fonts.css
Normal file
@@ -0,0 +1,22 @@
|
||||
@import url("https://fontsapi.zeoseven.com/292/main/result.css");
|
||||
@import url("https://fontsapi.zeoseven.com/292/light/result.css");
|
||||
@import url("https://fontsapi.zeoseven.com/293/main/result.css");
|
||||
@import url("https://fontsapi.zeoseven.com/2/main/result.css");
|
||||
@import url("https://fontsapi.zeoseven.com/147/main/result.css");
|
||||
|
||||
:root {
|
||||
--vp-font-family-base: "LXGW WenKai";
|
||||
--vp-font-family-mono: "LXGW WenKai Mono";
|
||||
}
|
||||
|
||||
strong {
|
||||
font-family: "LXGW ZhenKai GB";
|
||||
}
|
||||
|
||||
em {
|
||||
font-family: "LXGW WenKai Light";
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-family: "JiangChengLvDongSong";
|
||||
}
|
||||
Reference in New Issue
Block a user