44 font-weight : 400 ;
55
66 color-scheme : light dark;
7- color : rgba ( 255 , 255 , 255 , 0.87 ) ;
8- background-color : # 242424 ;
7+ color : # e0e0e0 ;
8+ background-color : # 1a1a1a ;
99
1010 font-synthesis : none;
1111 text-rendering : optimizeLegibility;
1515
1616a {
1717 font-weight : 500 ;
18- color : # 646cff ;
18+ color : # a3bffa ;
1919 text-decoration : inherit;
2020}
2121a : hover {
22- color : # 535bf2 ;
22+ color : # c0d4ff ;
2323}
2424
2525body {
2626 margin : 0 ;
27- display : flex;
28- place-items : center;
2927 min-width : 320px ;
3028 min-height : 100vh ;
3129}
3230
3331h1 {
3432 font-size : 3.2em ;
3533 line-height : 1.1 ;
34+ color : # ffffff ;
3635}
3736
3837button {
3938 border-radius : 8px ;
40- border : 1px solid transparent ;
39+ border : 1px solid # 333 ;
4140 padding : 0.6em 1.2em ;
4241 font-size : 1em ;
4342 font-weight : 500 ;
4443 font-family : inherit;
45- background-color : # 1a1a1a ;
44+ background-color : # 2a2a2a ;
45+ color : # e0e0e0 ;
4646 cursor : pointer;
47- transition : border-color 0.25s ;
47+ transition : border-color 0.25s , background-color 0.25 s ;
4848}
4949button : hover {
50- border-color : # 646cff ;
50+ border-color : # a3bffa ;
51+ background-color : # 333 ;
5152}
52- button : focus ,
53- button : focus-visible {
53+ button : active {
5454 outline : 4px auto -webkit-focus-ring-color;
55+ background-color : # 444 ;
56+ }
57+
58+ input [type = "checkbox" ],
59+ input [type = "number" ] {
60+ background-color : # 2a2a2a ;
61+ border : 1px solid # 444 ;
62+ color : # e0e0e0 ;
63+ padding : 2px ;
64+ border-radius : 4px ;
65+ }
66+ input [type = "checkbox" ]: checked {
67+ background-color : # a3bffa ;
68+ border-color : # a3bffa ;
69+ }
70+ input [type = "number" ]: focus {
71+ outline : none;
72+ border-color : # c0d4ff ;
73+ box-shadow : 0 0 4px rgba (163 , 191 , 250 , 0.5 );
74+ }
75+
76+ .container {
77+ border : 1px solid # 333 ;
78+ padding : 1rem ;
79+ border-radius : 8px ;
80+ background-color : # 222 ;
81+ color : # e0e0e0 ;
82+ }
83+
84+ .item-card {
85+ display : flex;
86+ flex-direction : column;
87+ align-items : start;
88+ transition : transform 0.2s , background-color 0.2s , box-shadow 0.2s ;
89+ cursor : pointer;
90+ }
91+ .item-card : hover {
92+ background-color : # 2e2e2e ;
93+ box-shadow : 0 6px 12px rgba (0 , 0 , 0 , 0.3 );
94+ transform : scale (1.05 );
5595}
5696
5797@media (prefers-color-scheme : light) {
5898 : root {
5999 color : # 213547 ;
60100 background-color : # ffffff ;
61101 }
102+ body {
103+ color : # 213547 ;
104+ background-color : # ffffff ;
105+ }
106+ h1 {
107+ font-size : 3.2em ;
108+ line-height : 1.1 ;
109+ color : # 213547 ;
110+ }
111+
112+ a {
113+ color : # 646cff ;
114+ }
62115 a : hover {
63- color : # 747bff ;
116+ color : # 213547 ;
64117 }
118+
65119 button {
120+ border : 1px solid # ccc ;
121+ background-color : # fff ;
122+ color : # 213547 ;
123+ }
124+ button : hover {
125+ border-color : # 646cff ;
66126 background-color : # f9f9f9 ;
67127 }
68- }
128+ button : active {
129+ outline : 4px auto -webkit-focus-ring-color;
130+ background-color : # eee ;
131+ }
132+
133+ input [type = "checkbox" ],
134+ input [type = "number" ] {
135+ background-color : # fff ;
136+ border : 1px solid # ccc ;
137+ color : # 213547 ;
138+ padding : 2px ;
139+ border-radius : 4px ;
140+ }
141+ input [type = "checkbox" ]: checked {
142+ background-color : # 646cff ;
143+ border-color : # 646cff ;
144+ }
145+ input [type = "number" ]: focus {
146+ outline : none;
147+ border-color : # 646cff ;
148+ box-shadow : 0 0 4px rgba (100 , 108 , 255 , 0.5 );
149+ }
150+
151+ .container {
152+ border-color : # ccc ;
153+ background-color : # f8f8f8 ;
154+ color : # 213547 ;
155+ }
156+ .item-card : hover {
157+ background-color : # f0f0f0 ;
158+ box-shadow : 0 4px 8px rgba (0 , 0 , 0 , 0.1 );
159+ }
160+ }
0 commit comments