Skip to content

Commit 3c7c215

Browse files
committed
style(theme): 更新主题颜色为蓝色并添加相关CSS变量
1 parent cf30599 commit 3c7c215

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

website/docs/.vitepress/config.ts

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,27 @@ export default defineConfig( {
1212
locales: locales.locales,
1313
head: [
1414
['link', { rel: 'icon', href: '/logo.png' }],
15-
['meta', { name: 'theme-color', content: '#646cff' }],
15+
['meta', { name: 'theme-color', content: '#0d84ff' }],
16+
['style', {}, `
17+
:root {
18+
--vp-c-brand-1: #0d84ff;
19+
--vp-c-brand-2: #0d84ff;
20+
--vp-c-brand-3: #0d84ff;
21+
--vp-c-brand-soft: rgba(13, 132, 255, 0.14);
22+
--vp-c-text-accent-1: #0d84ff;
23+
--vp-button-brand-bg: #0d84ff;
24+
--vp-button-brand-hover-bg: #0a6edb;
25+
}
26+
.dark {
27+
--vp-c-brand-1: #0d84ff;
28+
--vp-c-brand-2: #0d84ff;
29+
--vp-c-brand-3: #0d84ff;
30+
--vp-c-brand-soft: rgba(13, 132, 255, 0.16);
31+
--vp-c-text-accent-1: #0d84ff;
32+
--vp-button-brand-bg: #0d84ff;
33+
--vp-button-brand-hover-bg: #3a9bff;
34+
}
35+
`],
1636
],
1737
sitemap: {
1838
hostname: 'https://seyud.github.io/Mediatek_Mali_GPU_Governor'

0 commit comments

Comments
 (0)