@sugarat/create-theme 0.0.17 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/template/docs/.vitepress/blog-theme.ts +14 -0
- package/dist/template/docs/.vitepress/config.mts +0 -5
- package/dist/template/docs/.vitepress/theme/index.ts +3 -3
- package/dist/template/docs/.vitepress/theme/user-theme.css +26 -0
- package/dist/template/package.json +2 -2
- package/package.json +1 -1
- package/dist/template/docs/.vitepress/theme/green-theme.var.css +0 -13
|
@@ -20,10 +20,24 @@ const blogTheme = getThemeConfig({
|
|
|
20
20
|
// 开启RSS支持
|
|
21
21
|
// RSS,
|
|
22
22
|
|
|
23
|
+
// 搜索
|
|
23
24
|
// 默认开启pagefind离线的全文搜索支持(如使用其它的可以设置为false)
|
|
24
25
|
// 如果npx pagefind 时间过长,可以手动将其安装为项目依赖 pnpm add pagefind
|
|
25
26
|
// search: false,
|
|
26
27
|
|
|
28
|
+
// 页脚
|
|
29
|
+
footer: {
|
|
30
|
+
// message: '下面 的内容和图标都是可以修改的噢(当然本条内容也是可以隐藏的)',
|
|
31
|
+
copyright: 'MIT License | 粥里有勺糖',
|
|
32
|
+
// icpRecord: {
|
|
33
|
+
// name: '蜀ICP备19011724号',
|
|
34
|
+
// link: 'https://beian.miit.gov.cn/'
|
|
35
|
+
// },
|
|
36
|
+
// securityRecord: {
|
|
37
|
+
// name: '公网安备xxxxx',
|
|
38
|
+
// link: 'https://www.beian.gov.cn/portal/index.do'
|
|
39
|
+
// },
|
|
40
|
+
},
|
|
27
41
|
// 主题色修改
|
|
28
42
|
themeColor: 'el-blue',
|
|
29
43
|
|
|
@@ -18,11 +18,6 @@ export default defineConfig({
|
|
|
18
18
|
lastUpdated: true,
|
|
19
19
|
themeConfig: {
|
|
20
20
|
lastUpdatedText: '上次更新于',
|
|
21
|
-
footer: {
|
|
22
|
-
message: '自定义底部内容',
|
|
23
|
-
copyright:
|
|
24
|
-
'MIT Licensed | <a target="_blank" href="https://theme.sugarat.top/"> @sugarat/theme </a>'
|
|
25
|
-
},
|
|
26
21
|
logo: '/logo.png',
|
|
27
22
|
// editLink: {
|
|
28
23
|
// pattern:
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/* 所有变量:https://github.com/vuejs/vitepress/blob/main/src/client/theme-default/styles/vars.css */
|
|
2
|
+
/* 自定义主题色示例,如下 */
|
|
3
|
+
|
|
4
|
+
/* 浅色模式使用的变量 */
|
|
5
|
+
html[theme] {
|
|
6
|
+
--vp-c-user-1:red;
|
|
7
|
+
--vp-c-user-2:blue;
|
|
8
|
+
--vp-c-user-3:green;
|
|
9
|
+
--vp-c-user-soft:rgba(255,0,0,.5);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/* 深色模式使用的变量 */
|
|
13
|
+
html[theme].dark {
|
|
14
|
+
--vp-c-user-1:yellow;
|
|
15
|
+
--vp-c-user-2:purple;
|
|
16
|
+
--vp-c-user-3:orange;
|
|
17
|
+
--vp-c-user-soft:rgba(255,255,0,.5);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/* 覆盖默认变量 */
|
|
21
|
+
html[theme],html[theme].dark {
|
|
22
|
+
--vp-c-brand-1: var(--vp-c-user-1);
|
|
23
|
+
--vp-c-brand-2: var(--vp-c-user-2);
|
|
24
|
+
--vp-c-brand-3: var(--vp-c-user-3);
|
|
25
|
+
--vp-c-brand-soft: var(--vp-c-user-soft);
|
|
26
|
+
}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@element-plus/icons-vue": "^2.1.0",
|
|
14
|
-
"@sugarat/theme": "^0.1
|
|
14
|
+
"@sugarat/theme": "^0.2.1",
|
|
15
15
|
"element-plus": "^2.3.8",
|
|
16
16
|
"vue": "^3.3.4"
|
|
17
17
|
},
|
|
@@ -21,6 +21,6 @@
|
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"sass": "^1.64.1",
|
|
23
23
|
"typescript": "^5.1.6",
|
|
24
|
-
"vitepress": "1.0.0-rc.
|
|
24
|
+
"vitepress": "1.0.0-rc.17"
|
|
25
25
|
}
|
|
26
26
|
}
|
package/package.json
CHANGED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
/* 使用之前的绿色主题,重写当前紫色的 */
|
|
3
|
-
/* 所有变量:https://github.com/vuejs/vitepress/blob/main/src/client/theme-default/styles/vars.css */
|
|
4
|
-
--vp-c-brand: var(--vp-c-green);
|
|
5
|
-
--vp-c-brand-light: var(--vp-c-green-light);
|
|
6
|
-
--vp-c-brand-lighter: var(--vp-c-green-lighter);
|
|
7
|
-
--vp-c-brand-dark: var(--vp-c-green-dark);
|
|
8
|
-
--vp-c-brand-darker: var(--vp-c-green-darker);
|
|
9
|
-
--vp-c-brand-dimm-1: var(--vp-c-green-dimm-1);
|
|
10
|
-
--vp-c-brand-dimm-2: var(--vp-c-green-dimm-2);
|
|
11
|
-
--vp-c-brand-dimm-3: var(--vp-c-green-dimm-3);
|
|
12
|
-
--vp-c-brand-text: var(--vp-c-green);
|
|
13
|
-
}
|