File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 161161 forced-color-adjust : none;
162162 color : CanvasText;
163163 }
164+
165+ /* Settings page: keep accent/background radio swatches visible in forced colors. */
166+ : where (
167+ fieldset: has (input[type = 'radio' ][name = 'accent-color' ]),
168+ fieldset : has (input[type = 'radio' ][name = 'background-theme' ])
169+ )
170+ > label {
171+ forced-color-adjust : none;
172+ border : 1px solid CanvasText;
173+ }
174+
175+ : where (
176+ fieldset: has (input[type = 'radio' ][name = 'accent-color' ]),
177+ fieldset : has (input[type = 'radio' ][name = 'background-theme' ])
178+ )
179+ > label : has (> input : checked ) {
180+ outline : 2px solid Highlight;
181+ outline-offset : 2px ;
182+ }
183+
184+ /* Settings page: make toggle tracks and thumb visible in forced colors. */
185+ button [role = 'switch' ] > span : last-of-type {
186+ forced-color-adjust : none;
187+ background : ButtonFace;
188+ border-color : ButtonText;
189+ }
190+
191+ button [role = 'switch' ][aria-checked = 'true' ] > span : last-of-type {
192+ background : Highlight;
193+ border-color : Highlight;
194+ }
195+
196+ button [role = 'switch' ] > span : last-of-type > span {
197+ background : Canvas;
198+ }
199+
200+ /* Homepage tag dots are custom spans, not list markers. */
201+ : where ([class ~= 'bg-accent' ][class ~= 'rounded-full' ][class ~= 'w-1' ][class ~= 'h-1' ]) {
202+ forced-color-adjust : none;
203+ background : CanvasText;
204+ }
164205}
165206
166207html {
You can’t perform that action at this time.
0 commit comments