Repository navigation
Expand file tree
/
Copy pathstyles.css
More file actions
77 lines (66 loc) · 2.78 KB
/
Copy pathstyles.css
File metadata and controls
77 lines (66 loc) · 2.78 KB
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
67
68
69
70
71
72
73
74
75
76
77
/*
* Eldritch — Thunderbird theme experiment stylesheet.
*
* The "theme_experiment" key in manifest.json maps the theme's colour keys
* onto Thunderbird's internal CSS variables (--spaces-bg-color,
* --tree-pane-background, ...). While the theme is active, Thunderbird
* writes those variables onto the :root element of every Thunderbird
* window, so most of the theme needs no CSS at all.
*
* What is left for this stylesheet to do:
*
* 1. Provide a value for every variable the theme maps, so that a
* variable Thunderbird does not implement itself does not fall back
* to a system colour.
* 2. Document the palette in one place, keeping it in sync with
* manifest.json -> theme.colors.
*
* The values below are identical to the ones the theme sets through
* manifest.json, so they only ever act as a fallback — Thunderbird applies
* the theme values inline on :root, and inline declarations win over the
* ones made here.
*/
:root {
/* Eldritch palette. */
--eldritch-background: #212337;
--eldritch-surface: #323449;
--eldritch-surface-alt: #454759;
--eldritch-accent: #04d1f9;
--eldritch-accent-alt: #37f499;
--eldritch-text: #ebfafa;
/*
* Variables that Thunderbird does not provide itself. They are mapped in
* manifest.json, so Thunderbird sets them inline on :root, but there is no
* native variable of that name for the themed surfaces to pick up.
*/
--bg-color: var(--eldritch-background);
--ab-cards-list-bg: var(--eldritch-surface);
--in-content-box-info-background: var(--eldritch-surface);
/* Spaces toolbar. */
--spaces-bg-color: var(--eldritch-background);
--spaces-button-active-bg-color: var(--eldritch-accent);
--spaces-button-active-text-color: var(--eldritch-background);
/* Folder pane and thread pane. */
--tree-view-bg: var(--eldritch-background);
--tree-pane-background: var(--eldritch-background);
--tree-card-background: var(--eldritch-surface);
/* Message list. */
--list-container-background-selected-current: var(--eldritch-surface);
/* Tab bar. */
--tabs-toolbar-background-color: var(--eldritch-background);
/* Buttons. */
--button-background-color: var(--eldritch-surface);
--button-primary-background-color: var(--eldritch-accent);
--button-primary-text-color: var(--eldritch-background);
/* Layout surfaces (address book, calendar, ...). */
--layout-background-0: var(--eldritch-surface-alt);
--layout-background-1: var(--eldritch-surface-alt);
/* Calendar. */
--calendar-view-toggle-background: var(--eldritch-surface);
--calendar-view-toggle-hover-background: var(--eldritch-accent-alt);
/* Lightweight theme accent. */
--lwt-accent-color: var(--eldritch-surface);
/* Greys. */
--color-gray-70: var(--eldritch-surface);
--color-gray-50: var(--eldritch-surface-alt);
}