1+ : root {
2+ color-scheme : light dark;
3+ }
4+
15html ,
26body ,
37# root {
610}
711
812body {
9- background : rgb (244 , 247 , 252 );
10- color : # 111 ;
13+ background : light-dark ( rgb (244 , 247 , 252 ) , # 111 );
14+ color : light-dark ( # 111, # ddd ) ;
1115 margin : 0 ;
1216 font-family : -apple-system, BlinkMacSystemFont, "Segoe UI" , Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji" ,
1317 "Segoe UI Emoji" , "Segoe UI Symbol" ;
@@ -22,11 +26,11 @@ button {
2226}
2327
2428.-button {
25- background-color : rgb (87 , 114 , 245 );
29+ background-color : light-dark ( rgb (87 , 114 , 245 ) , rgb ( 50 , 85 , 250 ) );
2630 border-radius : 5px ;
2731 border : none;
2832 box-sizing : border-box;
29- color : white;
33+ color : light-dark ( white, # ddd ) ;
3034 cursor : pointer;
3135 padding : 18px 20px ;
3236 text-decoration : none;
@@ -44,7 +48,7 @@ button {
4448}
4549
4650.card-box {
47- background-color : rgb (250 , 253 , 258 );
51+ background-color : light-dark ( rgb (250 , 253 , 258 ) , # 000 );
4852 border-radius : 5px ;
4953 box-shadow :
5054 rgba (60 , 66 , 87 , 0.117647 ) 0px 7px 14px 0px ,
@@ -54,8 +58,8 @@ button {
5458}
5559
5660.card-box > .header {
57- border-bottom : 1px solid # ddd ;
58- color : # 444 ;
61+ border-bottom : 1px solid light-dark ( # ddd, # 222 ) ;
62+ color : light-dark ( # 444, # ccc ) ;
5963 padding : 30px ;
6064}
6165
@@ -65,7 +69,7 @@ button {
6569}
6670
6771.card-box > .header > .sub {
68- color : # 555 ;
72+ color : light-dark ( # 555, # aaa ) ;
6973 margin-top : 10px ;
7074}
7175
0 commit comments