-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathglobal.css
59 lines (55 loc) · 1.68 KB
/
global.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
:root {
/* 兼容已有组件 */
--foreground: 240 10% 3.9%;
--card-foreground: 240 10% 3.9%;
--popover: 0 0% 100%;
--popover-foreground: 240 10% 3.9%;
--primary-foreground: 0 0% 98%;
--secondary: 240 4.8% 95.9%;
--secondary-foreground: 240 5.9% 10%;
--muted: 240 4.8% 95.9%;
--muted-foreground: 240 3.8% 46.1%;
--accent: 240 4.8% 95.9%;
--accent-foreground: 240 5.9% 10%;
--destructive: 0 84.2% 60.2%;
--destructive-foreground: 0 0% 98%;
--border: 240 5.9% 90%;
--input: 240 5.9% 90%;
--ring: 240 5.9% 10%;
--background: 0 0% 97%; /* 背景色 */
--card: 0 0% 100% 0.7; /* 卡片背景色(二级背景色) */
--primary: 210 100% 53.1%; /* 主色蓝色 */
--text-primary: 0 0% 30%; /* 一级文本色 */
--text-secondary: 0 0% 60%; /* 二级文本色 */
--text-tertiary: 0 0% 80%; /* 三级文本色 */
}
.dark:root,
.dark {
--foreground: 0 0% 98%;
--card-foreground: 0 0% 98%;
--popover: 240 10% 3.9%;
--popover-foreground: 0 0% 98%;
--primary-foreground: 240 5.9% 10%;
--secondary: 240 3.7% 15.9%;
--secondary-foreground: 0 0% 98%;
--muted: 240 3.7% 15.9%;
--muted-foreground: 240 5% 64.9%;
--accent: 240 3.7% 15.9%;
--accent-foreground: 0 0% 98%;
--destructive: 0 72% 51%;
--destructive-foreground: 0 0% 98%;
--border: 240 3.7% 15.9%;
--input: 240 3.7% 15.9%;
--ring: 240 4.9% 83.9%;
--background: 0 0% 7%;
--card: 0, 0% 12.16% 0.7;
--primary: 210, 100%, 53.1%;
--text-primary: 0 0% 90%;
--text-secondary: 0 0% 52%;
--text-tertiary: 0 0% 30%;
}
}