-
Notifications
You must be signed in to change notification settings - Fork 1
/
theme.css
66 lines (54 loc) · 1.33 KB
/
theme.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
[data-theme='dark'] {
color-scheme: dark;
--link: var(--indigo-3);
--link-visited: var(--purple-3);
--text-1: var(--gray-1);
--text-2: var(--gray-4);
--surface-1: var(--gray-9);
--surface-2: var(--gray-8);
--surface-3: var(--gray-7);
--surface-4: var(--gray-6);
--scrollthumb-color: var(--gray-6);
--shadow-strength: 10%;
--shadow-color: 220 40% 2%;
& :where(dialog) {
background-color: var(--surface-2);
}
& :where(button) {
--_highlight: var(--_highlight-dark);
--_bg: var(--_bg-dark);
--_ink-shadow: var(--_ink-shadow-dark);
&:where([type='reset']) {
--_text: var(--red-2);
--_border: var(--surface-3);
}
}
&
:where(
button,
input:is([type='button'], [type='submit'], [type='reset'])
)[disabled] {
--_text: var(--gray-5);
}
&
:where(
textarea,
select,
input:not([type='button'], [type='submit'], [type='reset'])
) {
background-color: hsl(210deg 11% 10%);
}
& :where([type='submit']),
& :where(form button:not([type='button'])),
& :where([type='reset']),
& :where([disabled]) {
--_bg: var(--surface-1);
}
}
/* Fix shadow OSDark & data-theme='light' */
@media (prefers-color-scheme: dark) {
[data-theme='light'] {
--shadow-color: 220 3% 15% !important;
--shadow-strength: 1% !important;
}
}