summaryrefslogtreecommitdiffstats
path: root/polygerrit-ui/app/styles/themes/dark-theme.html
blob: 957cc253443e774bc681fd481bd3ab96825249a4 (plain)
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<!--
@license
Copyright (C) 2019 The Android Open Source Project

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<dom-module id="dark-theme">
  <custom-style><style is="custom-style">
    html {
      /**
       * Sections and variables must stay consistent with app-theme.html.
       *
       * Only modify color variables in this theme file. dark-theme extends
       * app-theme, so there is no need to repeat all variables, but for colors
       * it does make sense to list them all: If you override one color, then
       * you probably want to override all.
       */

      /* text colors */
      --primary-text-color: #e8eaed;
      --link-color: #8ab4f8;
      --comment-text-color: var(--primary-text-color);
      --deemphasized-text-color: #9e9e9e;
      --default-button-text-color: #8ab4f8;
      --error-text-color: red;
      --primary-button-text-color: var(--primary-text-color);
        /* Used on text color for change list doesn't need user's attention. */
      --reviewed-text-color: #dadce0;
      --secondary-button-text-color: var(--deemphasized-text-color);
      --tooltip-text-color: white;
      --vote-text-color-recommended: #388e3c;
      --vote-text-color-disliked: #d32f2f;

      /* background colors */
      --assignee-highlight-color: #3a361c;
      --chip-background-color: #131416;
      --comment-background-color: #0b162b;
      --default-button-background-color: #3c4043;
      --dialog-background-color: #131416;
      --dropdown-background-color: #131416;
      --edit-mode-background-color: #5c0a36;
      --emphasis-color: #383f4a;
      --expanded-background-color: #26282b;
      --hover-background-color: rgba(161, 194, 250, 0.2);
      --primary-button-background-color: var(--link-color);
      --secondary-button-background-color: var(--primary-text-color);
      --select-background-color: #3c4043;
      --selection-background-color: rgba(161, 194, 250, 0.1);
      --shell-command-background-color: #5f5f5f;
      --shell-command-decoration-background-color: #999;
      --table-header-background-color: #131416;
      --table-subheader-background-color: rgba(158, 158, 158, 0.24);
      --tooltip-background-color: #111;
      --unresolved-comment-background-color: #385a9a;
      --view-background-color: #131416;
      --vote-color-approved: #7fb66b;
      --vote-color-disliked: #bf6874;
      --vote-color-neutral: #597280;
      --vote-color-recommended: #3f6732;
      --vote-color-rejected: #ac2d3e;

      /* misc colors */
      --border-color: #5f6368;

      /* fonts */
      --font-weight-bold: 900;

      /* spacing */

      /* header and footer */
      --footer-background-color: #131416;
      --footer-border-top: 1px solid var(--border-color);
      --header-background-color: #3c4043;
      --header-border-bottom: 1px solid var(--border-color);
      --header-padding: 0 var(--spacing-l);
      --header-text-color: var(--primary-text-color);

      /* diff colors */
      --dark-add-highlight-color: #133820;
      --dark-rebased-add-highlight-color: rgba(11, 255, 155, 0.15);
      --dark-rebased-remove-highlight-color: rgba(255, 139, 6, 0.15);
      --dark-remove-highlight-color: #62110f;
      --diff-blank-background-color: #212121;
      --diff-context-control-background-color: #131416;
      --diff-context-control-border-color: var(--border-color);
      --diff-context-control-color: var(--deemphasized-text-color);
      --diff-highlight-range-color: rgba(0, 100, 200, 0.5);
      --diff-highlight-range-hover-color: rgba(0, 150, 255, 0.5);
      --diff-selection-background-color: #3a71d8;
      --diff-tab-indicator-color: var(--deemphasized-text-color);
      --diff-trailing-whitespace-indicator: #ff9ad2;
      --light-add-highlight-color: #0f401f;
      --light-rebased-add-highlight-color: #487165;
      --light-remove-add-highlight-color: #2f3f2f;
      --light-remove-highlight-color: #320404;

      /* syntax colors */
      --syntax-attr-color: #80cbbf;
      --syntax-attribute-color: var(--primary-text-color);
      --syntax-built_in-color: #f7c369;
      --syntax-comment-color: var(--deemphasized-text-color);
      --syntax-default-color: var(--primary-text-color);
      --syntax-doctag-weight: bold;
      --syntax-function-color: var(--primary-text-color);
      --syntax-keyword-color: #cd4cf0;
      --syntax-link-color: #c792ea;
      --syntax-literal-color: #eefff7;
      --syntax-meta-color: #6d7eee;
      --syntax-meta-keyword-color: #eefff7;
      --syntax-number-color: #00998a;
      --syntax-params-color: var(--primary-text-color);
      --syntax-regexp-color: #f77669;
      --syntax-selector-attr-color: #80cbbf;
      --syntax-selector-class-color: #ffcb68;
      --syntax-selector-id-color: #f77669;
      --syntax-selector-pseudo-color: #c792ea;
      --syntax-string-color: #c3e88d;
      --syntax-tag-color: #f77669;
      --syntax-template-tag-color: #c792ea;
      --syntax-template-variable-color: #f77669;
      --syntax-title-color: #75a5ff;
      --syntax-type-color: #dd5f5f;
      --syntax-variable-color: #f77669;

      /* misc */

      /* rules applied to <html> */
      background-color: var(--view-background-color);
    }
  </style></custom-style>
</dom-module>