UNPKG

1.08 kBCSSView Raw
1@import "../props.media.css";
2
3:where(html) {
4 color-scheme: light;
5
6 --link: var(--indigo-7);
7 --link-visited: var(--purple-7);
8
9 --text-1: var(--gray-9);
10 --text-2: var(--gray-7);
11
12 --surface-1: var(--gray-0);
13 --surface-2: var(--gray-2);
14 --surface-3: var(--gray-3);
15 --surface-4: var(--gray-4);
16
17 --scrollthumb-color: var(--gray-7);
18
19 @media (--HDcolor) {
20 @supports (color: color(display-p3 0 0 0)) {
21 --link: color(display-p3 .1 .4 1);
22 --link-visited: color(display-p3 .6 .2 1);
23 }
24 }
25
26 & :where(dialog) {
27 background-color: var(--surface-1);
28 }
29
30 & :where(button) {
31 --_highlight: var(--_highlight-light);
32 --_bg: var(--_bg-light);
33 --_ink-shadow: var(--_ink-shadow-light);
34
35 & :where([type="reset"]) {
36 --_text: var(--red-6);
37 --_border: var(--red-3);
38 }
39 }
40
41 & :where(button,input:is([type="button"],[type="submit"],[type="reset"]))[disabled] {
42 --_text: var(--gray-6);
43 }
44
45 & :where(textarea, select, input:not([type="button"],[type="submit"],[type="reset"])) {
46 background-color: var(--surface-2);
47 }
48}