-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththeme.less
258 lines (207 loc) · 6.38 KB
/
theme.less
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
/*
==========================================
Bluemist: A brackets theme v1.2
==========================================
v1.3:
- active line number put to the left for readability
- centered unfolded gutter-triangle correctly
- cleanup
Unnecessary CSS (we don't need it, it's nice without):
.cm-matchhighlight { -matching live selection- }
Referencefile:
https://github.com/adobe/brackets/blob/master/src/extensions/default/DarkTheme/main.less
Code-Colors inspired by:
https://github.com/apezel/brackets-easy-dark/blob/master/theme.css
*/
/*
==========================================
All the colors here:
==========================================
*/
@comments: #f271b1; //comments
@background: #394551; //background
@backdark: #333d48; //background, a bit darker
@foreground: #dddddd; //foreground
@darker: #2c363f; //darker bluemist (e.g. gutter background)
@marker: #d44a26; //marked text
@border: #777777; //subtle grey border (e.g. right border of the gutter)
@grey: #424242; //grey
@cursor1: #ffffff; //cursor1 normal mode
@cursor2: #ff0404; //cursor2 overwrite mode
@matching: #00ff00; //matching brackets
@nonmatching: #ff0000; //nonmatching brackets
@searchall: #809136; //search highlight all hits
@searchcurrent: #b5fd07; //search highlight current hit
@color-1: #FF3b6b; //pink
@color-2: #4da4c0; //blue
@color-3: #fff176; //yellow
@color-4: #31be6A; //green
@color-5: #ba68c9; //violet
@color-6: #fecF96; //orange
@color-7: #AEDA7C; //lightgreen
@color-8: #fa0000; //signalred
@color-9: #0303ff; //signalblue
/*
==========================================
Editor CSS here:
==========================================
*/
.CodeMirror, .CodeMirror-scroll { /*basic editor colors*/
background-color: @background;
color: @foreground
}
.CodeMirror-gutters,
.CodeMirror-linenumber { /*gutter*/
background: @darker; /*gutter background*/
border-right: 1px solid @border; /*gutter foreground*/
color: @foreground /*gutter numbers*/
}
.CodeMirror-selected { /*selected text*/
background: @marker;
opacity: 0.5
}
.CodeMirror-cursor { /*cursor1 normal mode*/
border-left: 2px solid @cursor1
}
.CodeMirror-overwrite .CodeMirror-cursor { /*cursor2 overwrite mode*/
border-left: 0px;
border-bottom: 3px solid @cursor2
}
.CodeMirror-activeline .CodeMirror-linenumber { /*active line in gutter*/
background: @foreground;
color: @background;
font-weight: 900;
text-align: left
}
.CodeMirror-activeline-background { /*active line in editor*/
background: darken(@background, 3%);
border-style: none
}
.CodeMirror-foldgutter-open:after, /*unfolded code triangle*/
.CodeMirror-foldgutter-open:after,
.CodeMirror-foldgutter-open:after
.CodeMirror-activeline
.CodeMirror.over-gutter {
color: @border;
padding: 2px
}
.CodeMirror-foldgutter-folded:after { /*folded code triangle*/
color: @comments
}
.quick-view-highlight { /*inline popup texthover*/
background-color: @marker
}
span.CodeMirror-matchingbracket { /*matching brackets*/
color: @background;
background-color:@matching
}
span.CodeMirror-nonmatchingbracket { /*nonmatching brackets*/
color: @matching;
background: @nonmatching
}
.CodeMirror-matchingtag { /*html matching tags*/
background-color: darken(@background, 10%)
}
.CodeMirror-searching { /*search highlicht all hits*/
background-color: @searchall
}
.CodeMirror-searching.searching-current-match { /*search highlight current hit*/
background-color: @searchcurrent
}
.CodeMirror-foldmarker { /*code-folding collapsed text placeholders*/
border: 0px;
color: @background;
background-color: @foreground
}
.image-view,
.not-editor { /*image view background*/
background-color: @background
}
.view-pane .image-view { /*image view foreground*/
color: @foreground
}
/*
==========================================
Code-Colors CSS here:
==========================================
*/
span.cm-atom {
color: @foreground;
}
span.cm-string {
color: @color-7;
}
span.cm-string-2 {
color: @color-7;
}
span.cm-hr {
color: @color-3;
}
span.cm-number {
color: @color-5;
}
span.cm-attribute {
color: @foreground;
}
span.cm-plus {
color: @color-2;
}
span.cm-def {
color: @color-6;
}
span.cm-property {
color: @color-2;
}
span.cm-operator {
color: @color-1;
}
span.cm-meta {
color: @color-2;
}
span.cm-bracket {
color: @color-2;
}
span.cm-variable {
color: @color-6;
}
span.cm-variable-2 {
color: @color-6;
}
span.cm-variable-3 {
color: @color-6;
}
span.cm-comment {
color: @comments;
}
span.cm-error {
color: @color-8;
}
span.cm-minus {
color: color-9;
}
span.cm-header {
color: @color-1;
}
span.cm-link {
color: @color-8;
text-decoration: none;
}
span.cm-rangeinfo {
color: @color-9;
}
span.cm-keyword {
color: @color-1;
font-weight: 900;
}
span.cm-qualifier {
color: @color-4;
}
span.cm-builtin {
color: @color-4;
}
span.cm-tag {
color: @foreground;
}
span.cm-quote {
color: @color-1;
}