1 | @import "../props.media.css";
|
2 |
|
3 | :where(
|
4 | [data-theme="dark"],
|
5 | .dark,
|
6 | .dark-theme
|
7 | ) {
|
8 | color-scheme: dark;
|
9 |
|
10 | --link: var(--indigo-3);
|
11 | --link-visited: var(--purple-3);
|
12 |
|
13 | --text-1: var(--gray-1);
|
14 | --text-2: var(--gray-4);
|
15 |
|
16 | --surface-1: var(--gray-9);
|
17 | --surface-2: var(--gray-8);
|
18 | --surface-3: var(--gray-7);
|
19 | --surface-4: var(--gray-6);
|
20 |
|
21 | --scrollthumb-color: var(--gray-6);
|
22 | --shadow-strength: 10%;
|
23 | --shadow-color: 220 40% 2%;
|
24 |
|
25 | & :where(dialog) {
|
26 | background-color: var(--surface-2);
|
27 | }
|
28 |
|
29 | & :where(button) {
|
30 | --_highlight: var(--_highlight-dark);
|
31 | --_bg: var(--_bg-dark);
|
32 | --_ink-shadow: var(--_ink-shadow-dark);
|
33 |
|
34 | &:where([type="reset"]) {
|
35 | --_text: var(--red-2);
|
36 | --_border: var(--surface-3);
|
37 | }
|
38 | }
|
39 |
|
40 | & :where(button,input:is([type="button"],[type="submit"],[type="reset"]))[disabled] {
|
41 | --_text: var(--gray-5);
|
42 | }
|
43 |
|
44 | & :where(textarea, select, input:not([type="button"],[type="submit"],[type="reset"])) {
|
45 | background-color: hsl(210deg 11% 10%);
|
46 | }
|
47 |
|
48 | & :where([type="submit"]),
|
49 | & :where(form button:not([type="button"])),
|
50 | & :where([type="reset"]),
|
51 | & :where([disabled]) {
|
52 | --_bg: var(--surface-1);
|
53 | }
|
54 | }
|