Commit c4d9def
feat: drive checkbox/radio input colors from theme CSS variables
The custom-styled checkbox/radio inputs hardcoded their colors
(#3498db, #eee, etc.) in the @supports block, so themes could not
restyle them. Introduce --colorInput* variables in the base :root
(deriving active/border from the existing accent vars) and have the
input block consume them. Add dark-theme overrides that darken the
unchecked and disabled surfaces so the controls no longer render as
light-grey boxes on the dark background.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 648f0ea commit c4d9def
2 files changed
Lines changed: 28 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
33 | 44 | | |
34 | 45 | | |
35 | 46 | | |
| |||
1346 | 1357 | | |
1347 | 1358 | | |
1348 | 1359 | | |
1349 | | - | |
1350 | | - | |
1351 | | - | |
1352 | | - | |
1353 | | - | |
1354 | | - | |
1355 | | - | |
1356 | | - | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
1357 | 1368 | | |
1358 | 1369 | | |
1359 | 1370 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
29 | 38 | | |
30 | 39 | | |
31 | 40 | | |
| |||
0 commit comments