forked from phcode-dev/staging.phcode.dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbrackets_theme_default.less
More file actions
350 lines (290 loc) · 10.3 KB
/
brackets_theme_default.less
File metadata and controls
350 lines (290 loc) · 10.3 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
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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
// Copyright (c) 2021 - present core.ai . All rights reserved.
// Original work Copyright (c) 2012 - 2021 Adobe Systems Incorporated. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
// and/or sell copies of the Software, and to permit persons to whom the
// Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
/*
* Brackets Default Theme
*
* Defines all the variables that one can configure in a theme. This should
* contain all variables / mixins for UI styling that we want to be able to
* change in a theme.
*
* Throughout the rest of the LESS files we should _only_ use color
* variable names that are on the LHS of the list below. So, if we
* need a new color for some UI element, we should add a variable
* in this file.
*/
/* Overall Colors */
/*
* Background colors are ordered from least "intense" to most "intense"
* So, if the background is light, then @background-color-3 should be
* lightest, -2 should be darker, and -1 should be darker still.
*
* The opposite is true for a dark background -- background-color-3 should be
* the darkest, -2 should be lighter, and -1 should be lighter still.
*/
@background: #f8f8f8;
@foreground: #535353;
/* Code Styling */
/* code accent colors */
@accent-keyword: #446fbd;
@accent-atom: #e88501;
@accent-number: #6d8600;
@accent-def: #8757ad;
@accent-variable: #A9478E; // global var
@accent-variable-2: #7554A0; // scoped var
@accent-variable-3: #535353; // type
@accent-property: #535353;
@accent-operator: #535353;
@accent-comment: #949494;
@accent-string: #e88501;
@accent-string-2: brown;
@accent-meta: #9C8819;
@accent-error: #dc322f;
@accent-success: #62c462;;
@accent-qualifier: #446fbd;
@accent-builtin: #446fbd;
@accent-bracket: #222;
@accent-tag: #446fbd;
@accent-attribute: #6d8600;
@accent-header: #d33682;
@accent-quote: #446fbd;
@accent-hr: #e88501;
@accent-link: #8757ad;
@accent-rangeinfo: #6c71c4;
@accent-minus: #dc322f;
@accent-plus: #859900;
@match-text: #121212;
@cm-match-highlight: #f5ee92;
@cm-current-match-highlight: #f7c44e;
/* code highlight */
@matching-bracket: #cfead6;
/* sidebar/toolbar colors */
@bc-ai-sidebar-bg: #252525;
@bc-ai-input-bg: #2a2a2a;
@bc-ai-input-bg-focused: #2d2d2d;
@bc-ai-input-border: rgba(255, 255, 255, 0.08);
@bc-ai-input-border-focus: rgba(255, 255, 255, 0.2);
@project-panel-base-color: @bc-project-files-bg;
@bc-working-set-bg: #2f2f2f;
@bc-project-files-bg: #252525;
@project-panel-text-1: #ffffff;
@project-panel-text-2: #adb9bd;
@main-toolbar-background-color: #252525;
/* open working file highlight */
@open-working-file-name-highlight: #8fddff;
@open-working-file-ext-highlight: #8fddff;
/* selection colors */
@selection-color-focused: #abdffa;
@selection-color-unfocused: #d5dee3;
/* background color of the line that has the cursor */
@activeline-bg: #ebefef;
@activeline-number: #000;
@activeline-number-bg: #dee5e6;
@activeline-number-bg-inline: #d7dede;
/* custom scrollbar colors */
@win-scrollbar-track: rgb(240, 240, 240);
@win-scrollbar-thumb: rgb(206, 206, 206);
@win-scrollbar-thumb-hover: rgb(166, 166, 166);
@win-scrollbar-thumb-active: rgb(96, 96, 96);
@linux-scrollbar-thumb: rgba(0, 0, 0, 0.24);
@linux-scrollbar-thumb-inactive: rgba(0, 0, 0, 0.12);
/* live preview */
@live-preview-sync-error-background: #ff5d99;
@live-preview-sync-error-color: #fff;
@overlay-text: #444444;
@dark-overlay-text: #FFF;
/* Code font formatting
*
* NOTE (JRB): In order to get the web font to load early enough, we have a div called "dummy-text" that
* is styled with .code-font().
*
* The platform-specific selector gets added to the body tag *before* document ready time.
* We rely on this behavior to load platform-specific web fonts early.
*/
.code-font() {
color: @foreground;
line-height: var(--editor-line-height);
.dark & {
color: @dark-bc-text;
}
font-family: @sourceFontFamily-Medium;
}
.code-font-win() {
}
.code-font-mac() {
}
.code-cursor() {
// to make a block cursor, use something like this:
// background-color: fadeout(@blue, 50%);
// border: none !important;
// to make an I-cursor, use something like this:
border-left: 1px solid black;
}
/* Dark theme styling
*
* These are overrides to make the UI look better when the editor theme is dark.
* Eventually, these will likely be replaced by full-featured UI themes.
*/
.dark {
#editor-holder, .editor-holder {
@background: #1d1f21;
@foreground: #ddd;
.CodeMirror .CodeMirror-selected {
background: #333f48;
}
.CodeMirror-focused .CodeMirror-selected {
background: #0050a0;
}
/*
CodeMirror's use of descendant selectors for certain styling causes problems when editors are
nested because, for items in the inner editor, the left-hand clause in the selector will now
match either the actual containing CodeMirror instance *OR* the outer "host" CodeMirror instance.
TODO (issue #324): We'll still have problems if editors can be nested more than one level deep,
or if any other descendant-selector-driven CM styles can differ between inner & outer editors
(potential problem areas include line wrap and coloring theme: basically, anything in codemirror.css
that uses a descandant selector where the CSS class name to the left of the space is something
other than a vanilla .CodeMirror)
*/
.CodeMirror {
background-color: @background;
color: @foreground;
.CodeMirror {
background: transparent;
}
.CodeMirror .CodeMirror-gutters {
background: transparent;
border-right: none;
}
.CodeMirror .CodeMirror-activeline-background {
background: transparent;
}
.CodeMirror .CodeMirror-activeline .CodeMirror-gutter-elt {
background: transparent;
color: #767676;
}
.CodeMirror-focused .CodeMirror-activeline-background {
background: #2f2f2f;
}
.CodeMirror-focused .CodeMirror-activeline {
.CodeMirror-gutter-elt {
background: rgba(0, 0, 0, 0.2);
color: #fff;
}
}
}
.CodeMirror-cursor {
border-left: 1px solid #c5c8c6 !important;
}
.CodeMirror-gutters {
background-color: @background;
border-right: none;
}
.CodeMirror-linenumber {
color: #767676;
}
.CodeMirror-focused .CodeMirror-activeline-background {
background: #2f2f2f;
}
.show-line-padding .CodeMirror-focused .CodeMirror-activeline-background {
box-shadow: inset 15px 0 0 0 #000;
}
.CodeMirror-focused .CodeMirror-activeline {
.CodeMirror-gutter-elt {
background: rgba(0, 0, 0, 0.2);
color: #fff;
}
.inline-widget .CodeMirror-gutter-elt {
color: #767676;
}
}
}
.inline-widget {
color: @dark-bc-text;
background-color: @dark-bc-bg-inline-widget;
border-top: 1px solid rgba(255, 255, 255, 0.1);
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
.inline-editor-header {
.filename {
color: #fff;
.dirty-indicator {
color: #aaa;
}
.line-number {
color: #bbb;
}
}
}
.btn {
background-color: @dark-bc-btn-bg;
color: @dark-bc-text;
border: 1px solid @dark-bc-btn-border;
box-shadow: inset 0 1px 0 @dark-bc-highlight;
&:hover {
background-color: @dark-bc-btn-bg;
color: @dark-bc-text;
}
&:focus {
border: 1px solid @dark-bc-btn-border-focused;
box-shadow: inset 0 1px 0 @dark-bc-highlight, 0 0 0 1px @dark-bc-btn-border-focused-glow;
color: @dark-bc-text;
}
&:active:not([disabled]) {
background-color: @dark-bc-btn-bg-down;
box-shadow: inset 0 1px 0 @dark-bc-shadow-small;
color: @dark-bc-text;
}
}
.close {
color: @dark-bc-text;
}
.CodeMirror-scroll {
.CodeMirror-linenumbers {
background-color: @dark-bc-bg-inline-widget;
}
}
}
#editor-holder .inline-widget .CodeMirror, #editor-holder .inline-widget .CodeMirror-gutters {
background: transparent;
}
.related-container {
background: @dark-bc-panel-bg;
.selection {
background: @dark-bc-panel-bg-selected;
}
.selection:before {
border-left: @inline-triangle-size solid @dark-bc-bg-inline-widget;
}
.related {
li {
color: @dark-bc-text-alt;
.related-file {
color: @dark-bc-text-thin-quiet;
}
}
.selected {
color: @dark-bc-text-alt;
}
}
.inline-editor-message {
color: @dark-bc-text-thin-quiet;
}
}
}
/* Variables and Mixins for non-code UI elements that can be styled */