-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchameleon.css
More file actions
40 lines (31 loc) · 816 Bytes
/
chameleon.css
File metadata and controls
40 lines (31 loc) · 816 Bytes
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
@charset "utf-8";
/*! chameleon.css 0.1.0 | MIT License | http://davidringsdorf.de */
/* basic */
[data-style-colorscheme] {
--chameleon-lightest: #fff;
--chameleon-darkest: #000;
}
[data-style-colorscheme|="light"] {
background-color: #fff;
color: #000;
background-color: var(--chameleon-lightest, #fff);
color: var(--chameleon-darkest, #000);
}
[data-style-colorscheme|="dark"] {
background-color: #000;
color: #fff;
background-color: var(--chameleon-darkest, #000);
color: var(--chameleon-lightest, #fff);
}
/* flavor */
@supports (--foo: bar) {
/* example */
[data-style-colorscheme="dark-night"] {
--chameleon-darkest: DarkBlue;
}
/* example */
[data-style-colorscheme="light-summer"] {
--chameleon-darkest: DarkGreen;
--chameleon-lightest: Yellow;
}
}