Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/celerity/postprocessor/CelerityDefaultPostprocessor.php
12262 views
1
<?php
2
3
final class CelerityDefaultPostprocessor
4
extends CelerityPostprocessor {
5
6
const POSTPROCESSOR_KEY = 'default';
7
8
public function getPostprocessorKey() {
9
return self::POSTPROCESSOR_KEY;
10
}
11
12
public function getPostprocessorName() {
13
return pht('Use Standard Colors');
14
}
15
16
public function buildDefaultPostprocessor() {
17
return null;
18
}
19
20
public function buildVariables() {
21
return array(
22
// Fonts
23
'basefont' => "13px 'Segoe UI', 'Segoe UI Emoji', ".
24
"'Segoe UI Symbol', 'Lato', 'Helvetica Neue', ".
25
"Helvetica, Arial, sans-serif",
26
27
'fontfamily' => "'Segoe UI', 'Segoe UI Emoji', ".
28
"'Segoe UI Symbol', 'Lato', 'Helvetica Neue', ".
29
"Helvetica, Arial, sans-serif",
30
31
// Drop Shadow
32
'dropshadow' => '0 2px 12px rgba(0, 0, 0, .20)',
33
'whitetextshadow' => '0 1px 0 rgba(255, 255, 255, 1)',
34
35
// Anchors
36
'anchor' => '#136CB2',
37
38
// Font Sizes
39
'biggestfontsize' => '15px',
40
'biggerfontsize' => '14px',
41
'normalfontsize' => '13px',
42
'smallerfontsize' => '12px',
43
'smallestfontsize' => '11px',
44
45
// Base Colors
46
'red' => '#c0392b',
47
'lightred' => '#f4dddb',
48
'orange' => '#e67e22',
49
'lightorange' => '#f7e2d4',
50
'yellow' => '#f1c40f',
51
'lightyellow' => '#fdf5d4',
52
'green' => '#139543',
53
'lightgreen' => '#d7eddf',
54
'blue' => '#2980b9',
55
'lightblue' => '#daeaf3',
56
'sky' => '#3498db',
57
'lightsky' => '#ddeef9',
58
'fire' => '#e62f17',
59
'indigo' => '#6e5cb6',
60
'lightindigo' => '#eae6f7',
61
'pink' => '#da49be',
62
'lightpink' => '#fbeaf8',
63
'violet' => '#8e44ad',
64
'lightviolet' => '#ecdff1',
65
'charcoal' => '#4b4d51',
66
'backdrop' => '#c4cde0',
67
'hoverwhite' => 'rgba(255,255,255,.6)',
68
'hovergrey' => '#c5cbcf',
69
'hoverblue' => '#eceff5',
70
'hoverborder' => '#dfe1e9',
71
'hoverselectedgrey' => '#bbc4ca',
72
'hoverselectedblue' => '#e6e9ee',
73
'borderinset' => 'inset 0 0 0 1px rgba(55,55,55,.15)',
74
'timeline' => '#d5d8e1',
75
'timeline.icon.background' => '#E6E9F1',
76
'bluepropertybackground' => '#eff3fc',
77
78
// Alphas
79
'alphawhite' => '255,255,255',
80
'alphagrey' => '55,55,55',
81
'alphablue' => '71,87,120',
82
'alphablack' => '0,0,0',
83
84
// Base Greys
85
'thingreyborder' => '#dadee8',
86
'lightgreyborder' => '#C7CCD9',
87
'greyborder' => '#A1A6B0',
88
'darkgreyborder' => '#676A70',
89
'lightgreytext' => '#92969D',
90
'greytext' => '#74777D',
91
'darkgreytext' => '#4B4D51',
92
'lightgreybackground' => '#F7F7F7',
93
'greybackground' => '#EBECEE',
94
'darkgreybackground' => '#DFE0E2',
95
96
// Base Blues
97
'thinblueborder' => '#DDE8EF',
98
'lightblueborder' => '#BFCFDA',
99
'blueborder' => '#8C98B8',
100
'darkblueborder' => '#626E82',
101
'lightbluebackground' => '#F8F9FC',
102
'bluebackground' => '#ECEEF4',
103
'lightbluetext' => '#8C98B8',
104
'bluetext' => '#6B748C',
105
'darkbluetext' => '#464C5C',
106
'blacktext' => '#000',
107
108
// Base Greens
109
'lightgreenborder' => '#bfdac1',
110
'greenborder' => '#8cb89c',
111
'greentext' => '#3e6d35',
112
'lightgreenbackground' => '#e6f2e4',
113
114
// Base Red
115
'lightredborder' => '#f4c6c6',
116
'redborder' => '#eb9797',
117
'redtext' => '#802b2b',
118
'lightredbackground' => '#f5e1e1',
119
120
// Base Violet
121
'lightvioletborder' => '#cfbddb',
122
'violetborder' => '#b589ba',
123
'violettext' => '#603c73',
124
'lightvioletbackground' => '#e9dfee',
125
126
// Shades are a more muted set of our base colors
127
// better suited to blending into other UIs.
128
129
// Shade Red
130
'sh-lightredborder' => '#efcfcf',
131
'sh-redborder' => '#d1abab',
132
'sh-redicon' => '#c85a5a',
133
'sh-redtext' => '#a53737',
134
'sh-redbackground' => '#f7e6e6',
135
136
// Shade Orange
137
'sh-lightorangeborder' => '#f8dcc3',
138
'sh-orangeborder' => '#dbb99e',
139
'sh-orangeicon' => '#e78331',
140
'sh-orangetext' => '#ba6016',
141
'sh-orangebackground' => '#fbede1',
142
143
// Shade Yellow
144
'sh-lightyellowborder' => '#e9dbcd',
145
'sh-yellowborder' => '#c9b8a8',
146
'sh-yellowicon' => '#9b946e',
147
'sh-yellowtext' => '#726f56',
148
'sh-yellowbackground' => '#fdf3da',
149
150
// Shade Green
151
'sh-lightgreenborder' => '#c6e6c7',
152
'sh-greenborder' => '#a0c4a1',
153
'sh-greenicon' => '#4ca74e',
154
'sh-greentext' => '#326d34',
155
'sh-greenbackground' => '#ddefdd',
156
157
// Shade Blue
158
'sh-lightblueborder' => '#cfdbe3',
159
'sh-blueborder' => '#a7b5bf',
160
'sh-blueicon' => '#6b748c',
161
'sh-bluetext' => '#464c5c',
162
'sh-bluebackground' => '#dee7f8',
163
164
// Shade Indigo
165
'sh-lightindigoborder' => '#d1c9ee',
166
'sh-indigoborder' => '#bcb4da',
167
'sh-indigoicon' => '#8672d4',
168
'sh-indigotext' => '#6e5cb6',
169
'sh-indigobackground' => '#eae6f7',
170
171
// Shade Violet
172
'sh-lightvioletborder' => '#e0d1e7',
173
'sh-violetborder' => '#bcabc5',
174
'sh-violeticon' => '#9260ad',
175
'sh-violettext' => '#69427f',
176
'sh-violetbackground' => '#efe8f3',
177
178
// Shade Pink
179
'sh-lightpinkborder' => '#f6d5ef',
180
'sh-pinkborder' => '#d5aecd',
181
'sh-pinkicon' => '#e26fcb',
182
'sh-pinktext' => '#da49be',
183
'sh-pinkbackground' => '#fbeaf8',
184
185
// Shade Grey
186
'sh-lightgreyborder' => '#e3e4e8',
187
'sh-greyborder' => '#b2b2b2',
188
'sh-greyicon' => '#757575',
189
'sh-greytext' => '#555555',
190
'sh-greybackground' => '#edeef2',
191
192
// Shade Disabled
193
'sh-lightdisabledborder' => '#e5e5e5',
194
'sh-disabledborder' => '#cbcbcb',
195
'sh-disabledicon' => '#bababa',
196
'sh-disabledtext' => '#a6a6a6',
197
'sh-disabledbackground' => '#f3f3f3',
198
199
// Diffs
200
'diff.background' => '#fff',
201
'new-background' => 'rgba(151, 234, 151, .3)',
202
'new-bright' => 'rgba(151, 234, 151, .6)',
203
'old-background' => 'rgba(251, 175, 175, .3)',
204
'old-bright' => 'rgba(251, 175, 175, .7)',
205
'move-background' => '#fdf5d4',
206
'copy-background' => '#f1c40f',
207
208
// Usually light yellow
209
'gentle.highlight' => '#fdf3da',
210
'gentle.highlight.border' => '#c9b8a8',
211
'gentle.highlight.background' => '#fffdf6',
212
213
'highlight.bright' => '#fdf320',
214
215
'paste.content' => '#fffef5',
216
'paste.border' => '#e9dbcd',
217
'paste.highlight' => '#fdf3da',
218
219
// Background color for "most" themes.
220
'page.background' => '#f3f5f7',
221
'page.sidenav' => '#eaedf1',
222
'page.content' => '#fff',
223
224
'menu.profile.text' => 'rgba(255,255,255,.8)',
225
'menu.profile.text.selected' => 'rgba(255,255,255,1)',
226
'menu.profile.icon.disabled' => 'rgba(255,255,255,.4)',
227
228
'menu.main.height' => '44px',
229
'menu.profile.width' => '240px',
230
231
// Buttons
232
'blue.button.color' => '#2980b9',
233
'blue.button.gradient' => 'linear-gradient(to bottom, #3498db, #2980b9)',
234
'blue.button.hover' => 'linear-gradient(to bottom, #3498db, #1b6ba0)',
235
'green.button.color' => '#139543',
236
'green.button.gradient' => 'linear-gradient(to bottom, #23BB5B, #139543)',
237
'green.button.hover' => 'linear-gradient(to bottom, #23BB5B, #178841)',
238
'red.button.color' => '#b33225',
239
'red.button.gradient' => 'linear-gradient(to bottom, #d25454, #b33225)',
240
'red.button.hover' => 'linear-gradient(to bottom, #d25454, #982115)',
241
'grey.button.color' => '#F7F7F9',
242
'grey.button.gradient' => 'linear-gradient(to bottom, #ffffff, #f1f0f1)',
243
'grey.button.hover' => 'linear-gradient(to bottom, #ffffff, #eeebec)',
244
245
'document.border' => '#dedee1',
246
247
'delete-color' => '#c0392b',
248
'create-color' => '#139543',
249
250
);
251
}
252
253
}
254
255