Skip to content

Commit 1d86ef8

Browse files
hoorayCopilot
andcommitted
feat: 主题色调整
Co-authored-by: Copilot <copilot@github.com>
1 parent d0dc927 commit 1d86ef8

1 file changed

Lines changed: 36 additions & 36 deletions

File tree

packages/themes/index.ts

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
export const lightTheme = {
22
// shadcn
3-
'--background': '1 0 0',
4-
'--foreground': '0.141 0.005 285.823',
5-
'--card': '1 0 0',
6-
'--card-foreground': '0.141 0.005 285.823',
7-
'--popover': '1 0 0',
8-
'--popover-foreground': '0.141 0.005 285.823',
9-
'--primary': '0.21 0.006 285.885',
10-
'--primary-foreground': '0.985 0 0',
11-
'--secondary': '0.967 0.001 286.375',
12-
'--secondary-foreground': '0.21 0.006 285.885',
13-
'--muted': '0.967 0.001 286.375',
14-
'--muted-foreground': '0.552 0.016 285.938',
15-
'--accent': '0.967 0.001 286.375',
16-
'--accent-foreground': '0.21 0.006 285.885',
17-
'--destructive': '0.577 0.245 27.325',
18-
'--border': '0.92 0.004 286.32',
19-
'--input': '0.92 0.004 286.32',
20-
'--ring': '0.705 0.015 286.067',
3+
'--background': '1 0 0', // oklch(1 0 0)
4+
'--foreground': '0.145 0 0', // oklch(0.145 0 0)
5+
'--card': '1 0 0', // oklch(1 0 0)
6+
'--card-foreground': '0.145 0 0', // oklch(0.145 0 0)
7+
'--popover': '1 0 0', // oklch(1 0 0)
8+
'--popover-foreground': '0.145 0 0', // oklch(0.145 0 0)
9+
'--primary': '0.205 0 0', // oklch(0.205 0 0)
10+
'--primary-foreground': '0.985 0 0', // oklch(0.985 0 0)
11+
'--secondary': '0.97 0 0', // oklch(0.97 0 0)
12+
'--secondary-foreground': '0.205 0 0', // oklch(0.205 0 0)
13+
'--muted': '0.97 0 0', // oklch(0.97 0 0)
14+
'--muted-foreground': '0.556 0 0', // oklch(0.556 0 0)
15+
'--accent': '0.97 0 0', // oklch(0.97 0 0)
16+
'--accent-foreground': '0.205 0 0', // oklch(0.205 0 0)
17+
'--destructive': '0.577 0.245 27.325', // oklch(0.577 0.245 27.325)
18+
'--border': '0.922 0 0', // oklch(0.922 0 0)
19+
'--input': '0.922 0 0', // oklch(0.922 0 0)
20+
'--ring': '0.708 0 0', // oklch(0.708 0 0)
2121
// 主要区域
2222
'--g-main-area-bg': 'oklch(0.9612 0 0)',
2323
// 头部
@@ -55,24 +55,24 @@ export const lightTheme = {
5555

5656
export const darkTheme = {
5757
// shadcn
58-
'--background': '0.141 0.005 285.823',
59-
'--foreground': '0.985 0 0',
60-
'--card': '0.21 0.006 285.885',
61-
'--card-foreground': '0.985 0 0',
62-
'--popover': '0.21 0.006 285.885',
63-
'--popover-foreground': '0.985 0 0',
64-
'--primary': '0.92 0.004 286.32',
65-
'--primary-foreground': '0.21 0.006 285.885',
66-
'--secondary': '0.274 0.006 286.033',
67-
'--secondary-foreground': '0.985 0 0',
68-
'--muted': '0.274 0.006 286.033',
69-
'--muted-foreground': '0.705 0.015 286.067',
70-
'--accent': '0.274 0.006 286.033',
71-
'--accent-foreground': '0.985 0 0',
72-
'--destructive': '0.704 0.191 22.216',
73-
'--border': '0.252 0.002 286.27',
74-
'--input': '0.341 0 0',
75-
'--ring': '0.552 0.016 285.938',
58+
'--background': '0.145 0 0', // oklch(0.145 0 0)
59+
'--foreground': '0.985 0 0', // oklch(0.985 0 0)
60+
'--card': '0.205 0 0', // oklch(0.205 0 0)
61+
'--card-foreground': '0.985 0 0', // oklch(0.985 0 0)
62+
'--popover': '0.205 0 0', // oklch(0.205 0 0)
63+
'--popover-foreground': '0.985 0 0', // oklch(0.985 0 0)
64+
'--primary': '0.922 0 0', // oklch(0.922 0 0)
65+
'--primary-foreground': '0.205 0 0', // oklch(0.205 0 0)
66+
'--secondary': '0.269 0 0', // oklch(0.269 0 0)
67+
'--secondary-foreground': '0.985 0 0', // oklch(0.985 0 0)
68+
'--muted': '0.269 0 0', // oklch(0.269 0 0)
69+
'--muted-foreground': '0.708 0 0', // oklch(0.708 0 0)
70+
'--accent': '0.269 0 0', // oklch(0.269 0 0)
71+
'--accent-foreground': '0.985 0 0', // oklch(0.985 0 0)
72+
'--destructive': '0.704 0.191 22.216', // oklch(0.704 0.191 22.216)
73+
'--border': '0.252 0 0', // oklch(0.252 0 0)
74+
'--input': '0.341 0 0', // oklch(0.341 0 0)
75+
'--ring': '0.556 0 0', // oklch(0.556 0 0)
7676
// 主要区域
7777
'--g-main-area-bg': 'oklch(var(--background))',
7878
// 头部

0 commit comments

Comments
 (0)