chore: update theme

This commit is contained in:
vben
2024-07-28 17:01:19 +08:00
parent 376fd17a61
commit 5590cc8fa1
15 changed files with 124 additions and 44 deletions

View File

@@ -304,5 +304,18 @@ function head(): HeadConfig[] {
// src: 'https://cdn.tailwindcss.com',
// },
// ],
[
'script',
{},
`
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?2e443a834727c065877c01d89921545e";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
`,
],
];
}

View File

@@ -3,7 +3,7 @@
"version": "5.0.0",
"private": true,
"scripts": {
"docs:build": "vitepress build",
"build": "vitepress build",
"docs:dev": "vitepress dev",
"docs:preview": "vitepress preview"
},

View File

@@ -28,10 +28,9 @@ css 变量内的颜色,必须使用 `hsl` 格式,如 `0 0% 100%`,不需要
```css
:root {
--font-geist-sans: 'pingfang sc', -apple-system, blinkmacsystemfont,
'segoe ui', helvetica, 'helvetica neue', 'microsoft yahei ui',
'microsoft yahei', arial, 'hiragino sans', 'apple color emoji',
'segoe ui emoji', 'segoe ui symbol', simsun, sans-serif;
--font-family: -apple-system, blinkmacsystemfont, 'Segoe UI', roboto,
'Helvetica Neue', arial, 'Noto Sans', sans-serif, 'Apple Color Emoji',
'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
/* Default background color of <body />...etc */
--background: 0 0% 100%;
@@ -331,10 +330,9 @@ type BuiltinThemeType =
```css
:root {
--font-geist-sans: 'pingfang sc', -apple-system, blinkmacsystemfont,
'segoe ui', helvetica, 'helvetica neue', 'microsoft yahei ui',
'microsoft yahei', arial, 'hiragino sans', 'apple color emoji',
'segoe ui emoji', 'segoe ui symbol', simsun, sans-serif;
--font-family: -apple-system, blinkmacsystemfont, 'Segoe UI', roboto,
'Helvetica Neue', arial, 'Noto Sans', sans-serif, 'Apple Color Emoji',
'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
/* Default background color of <body />...etc */
--background: 0 0% 100%;

View File

@@ -81,4 +81,4 @@ pnpm dev
```
现在,你可以在浏览器访问 [http://localhost:5555](http://localhost:5555) 查看项目。
现在,你可以在浏览器访问 `http://localhost:5555` 查看项目。