1
+ : root {
2
+ color-scheme : light dark;
3
+ }
4
+
1
5
html ,
2
6
body ,
3
7
# root {
7
11
8
12
body {
9
13
background : rgb (244 , 247 , 252 );
14
+ background : light-dark (rgb (244 , 247 , 252 ), # 111 );
10
15
color : # 111 ;
16
+ color : light-dark (# 111, # ddd );
11
17
margin : 0 ;
12
18
font-family : -apple-system, BlinkMacSystemFont, "Segoe UI" , Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji" ,
13
19
"Segoe UI Emoji" , "Segoe UI Symbol" ;
@@ -23,10 +29,12 @@ button {
23
29
24
30
.-button {
25
31
background-color : rgb (87 , 114 , 245 );
32
+ background-color : light-dark (rgb (87 , 114 , 245 ), rgb (50 , 85 , 250 ));
26
33
border-radius : 5px ;
27
34
border : none;
28
35
box-sizing : border-box;
29
36
color : white;
37
+ color : light-dark (white, # ddd );
30
38
cursor : pointer;
31
39
padding : 18px 20px ;
32
40
text-decoration : none;
@@ -45,6 +53,7 @@ button {
45
53
46
54
.card-box {
47
55
background-color : rgb (250 , 253 , 258 );
56
+ background-color : light-dark (rgb (250 , 253 , 258 ), # 000 );
48
57
border-radius : 5px ;
49
58
box-shadow :
50
59
rgba (60 , 66 , 87 , 0.117647 ) 0px 7px 14px 0px ,
@@ -55,7 +64,9 @@ button {
55
64
56
65
.card-box > .header {
57
66
border-bottom : 1px solid # ddd ;
67
+ border-bottom : 1px solid light-dark (# ddd, # 222 );
58
68
color : # 444 ;
69
+ color : light-dark (# 444, # ccc );
59
70
padding : 30px ;
60
71
}
61
72
@@ -66,6 +77,7 @@ button {
66
77
67
78
.card-box > .header > .sub {
68
79
color : # 555 ;
80
+ color : light-dark (# 555, # aaa );
69
81
margin-top : 10px ;
70
82
}
71
83
0 commit comments