1 | :where(html) {
|
2 | color-scheme: dark;
|
3 |
|
4 | --link: var(--indigo-3);
|
5 | --link-visited: var(--purple-3);
|
6 |
|
7 | --text-1: var(--gray-1);
|
8 | --text-2: var(--gray-4);
|
9 |
|
10 | --surface-1: var(--gray-9);
|
11 | --surface-2: var(--gray-8);
|
12 | --surface-3: var(--gray-7);
|
13 | --surface-4: var(--gray-6);
|
14 |
|
15 | --scrollthumb-color: var(--gray-6);
|
16 |
|
17 | & :where(dialog) {
|
18 | background-color: var(--surface-2);
|
19 | }
|
20 |
|
21 | & :where(button) {
|
22 | --_highlight: var(--_highlight-dark);
|
23 | --_bg: var(--_bg-dark);
|
24 | --_ink-shadow: var(--_ink-shadow-dark);
|
25 |
|
26 | &:where([type="reset"]) {
|
27 | --_text: var(--red-2);
|
28 | --_border: var(--surface-3);
|
29 | }
|
30 | }
|
31 |
|
32 | & :where(button,input:is([type="button"],[type="submit"],[type="reset"]))[disabled] {
|
33 | --_text: var(--gray-5);
|
34 | }
|
35 |
|
36 | & :where(textarea, select, input:not([type="button"],[type="submit"],[type="reset"])) {
|
37 | background-color: hsl(210deg 11% 10%);
|
38 | }
|
39 |
|
40 | & :where([type="submit"]),
|
41 | & :where(form button:not([type="button"])),
|
42 | & :where([type="reset"]),
|
43 | & :where([disabled]) {
|
44 | --_bg: var(--surface-1);
|
45 | }
|
46 | } |
\ | No newline at end of file |