-
Notifications
You must be signed in to change notification settings - Fork 1
/
vars.css
57 lines (52 loc) · 1.6 KB
/
vars.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
/*
* BRAND COLORS
* Based on the default VitePress theme currently used on runrig.org.
*/
:root {
--brand: #10b981;
--brand-light: #34d399;
--brand-lighter: #6ee7b7;
--brand-dark: #059669;
--brand-darker: #047857;
}
/*
* PICO OVERRIDES
* The following is adapted from https://picocss.com/docs/customization.html.
* So far this is only handling the main brand colors, but in Pico v2 this
* should all become a lot easier to do, so might hold off till then. See
* https://v2.picocss.com/docs/css-variables.
*/
/* Light-green Light scheme (Default) */
/* Can be forced with data-theme="light" */
[data-theme="light"],
:root:not([data-theme="dark"]) {
--primary: var(--brand);
--primary-hover: var(--brand-dark);
--primary-focus: rgba(124, 179, 66, 0.125);
--primary-inverse: #FFF;
}
/* Light-green Dark scheme (Auto) */
/* Automatically enabled if user has Dark mode enabled */
@media only screen and (prefers-color-scheme: dark) {
:root:not([data-theme]) {
--primary: var(--brand);
--primary-hover: var(--brand-light);
--primary-focus: rgba(124, 179, 66, 0.25);
--primary-inverse: #FFF;
}
}
/* Light-green Dark scheme (Forced) */
/* Enabled if forced with data-theme="dark" */
[data-theme="dark"] {
--primary: var(--brand);
--primary-hover: var(--brand-light);
--primary-focus: rgba(124, 179, 66, 0.25);
--primary-inverse: #FFF;
}
/* Light-green (Common styles) */
:root {
--form-element-active-border-color: var(--primary);
--form-element-focus-color: var(--primary-focus);
--switch-color: var(--primary-inverse);
--switch-checked-background-color: var(--primary);
}