-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmy-theme.less
404 lines (329 loc) · 10.3 KB
/
my-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
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
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
/*
* Phoenix Code Theme Template
*
* This template allows you to create custom themes by modifying color variables.
* Each section controls different aspects of the editor's appearance.
*/
/* Core UI Colors
* These variables control the fundamental visual elements of the editor
*/
@background: #000;
@foreground: #cdcdcd; // (Not for font color, but UI elements)
@comment: #999;
@comment-active: #aaa; // Applied when cursor is on a commented line
@cursor: #cdcdcd;
/* Active Line Highlighting */
@activeline-background: #232323;
@activeline-foreground: #cdcdcd;
/* Selected Code Highlighting */
@selected-background: #232323;
/* UI Component Colors */
// Title Bar
@titlebar-background: #000;
@titlebar-foreground: #cdcdcd;
// Status Bar
@status-bar-background: #000;
@status-bar-foreground: #cdcdcd;
// Sidebar - Houses file tree and working files
@sidebar-background: #000;
@sidebar-foreground: #cdcdcd;
@sidebar-active-file-foreground: #6bbeff; // Highlights the current working file (Try not to modify unless your color obscure the default color)
// Toolbar - Vertical panel on the right
@toolbar-background: #000;
/* Editor Gutter
* Controls the area containing line numbers and code folding indicators
*/
@gutter-background: #000;
@active-gutter-background: #232323;
@line-number: #999;
@active-line-number: #aaa;
@border: #676767; // Used for UI element separation
/* Search Highlighting
* These colors are used when using the find/replace functionality
*/
@searching-background: #f5ee92;
@searching-foreground: #4e4225;
@searching-match-background: #f5ee92;
@searching-match-foreground: #4e4225;
/* Brackets Highlighting
* These colors are also used for Matching-Tags
*/
@matchingbracket-background: #000;
@matchingbracket-color: #fff;
@active-matchingbracket-color: #fff;
@active-matchingbracket-background: #232323;
/* Syntax Highlighting
* These variables control the colors of different code elements in the editor.
* Customizing these will change how your code looks.
*/
@keyword: #cdcdcd; // Programming keywords like 'function', 'const', 'if', 'for'
@definition: #cdcdcd; // Function, variable, class names when they're being defined
@variable: #cdcdcd; // Global/Predefined variables in your code
@variable2: #cdcdcd; // Local variables
@variable3: #cdcdcd; // used to over write any default colors
@string: #cdcdcd; // Text between quotes: "example" or 'example'
@string2: #cdcdcd; // Special string variants like regex literals and LaTeX math
@tag: #cdcdcd; // HTML/XML tags like <div> or <body>
@type: #cdcdcd; // Data types in statically typed languages like 'int', 'char', 'bool'
@number: #cdcdcd; // Numeric values: 42, 1.5, 0xFF
@operator: #cdcdcd; // Mathematical/logical operators: +, -, !, ===
@meta: #cdcdcd; // Meta characters in regex and HTML doctype, include/import statements
@attribute: #cdcdcd; // HTML attributes like 'class' or 'src'
@property: #cdcdcd; // Object properties and CSS properties
@link: #cdcdcd; // Hyperlinks in markdown
@header: #cdcdcd; // Markdown headers (#, ##, etc.)
@error: #f7768e; // Text that represents an error in your code
@error-background: #f7768e1a; // Background highlight for error text
/* ------------------------------------------------------------------- */
/* Base Styles
* The following CSS rules implement the theme using the variables defined above.
* Modify with CAUTION. Only Modify if necessary.
*/
// Styles the empty editor state
.content #editor-holder .not-editor {
background-color: @background;
}
// Styles the header of each editor pane when multiple files are open
.content #editor-holder .pane-header {
background-color: @background;
color: @foreground;
}
/* Sidebar Styling */
// Applies consistent background to all sidebar elements
.main-view #sidebar,
.main-view #sidebar #mainNavBar,
.main-view #sidebar #working-set-list-container,
.main-view #sidebar #working-set-list-container .working-set-view-active,
.main-view #sidebar #working-set-list-container .working-set-header,
.main-view #sidebar #working-set-list-container .working-set-header-title,
.main-view #sidebar #working-set-list-container .sidebar-selection,
.main-view #sidebar #project-files-container,
.main-view #sidebar #project-files-header,
.main-view #sidebar #project-files-header #project-dropdown-toggle {
background-color: @sidebar-background;
}
// Creates a visual separator between working files and project files
.main-view #sidebar #working-set-list-container {
border-bottom: 1px solid @border;
}
// Removes default selection border in sidebar
.main-view #sidebar #working-set-list-container .sidebar-selection {
border: none;
}
/* Sidebar Text Styling */
// Sets color for all text elements in the sidebar
.main-view #sidebar #project-files-container ul li a span,
.main-view #sidebar #project-files-header #project-dropdown-toggle span,
.main-view #sidebar #working-set-list-container .working-set-view .working-set-header span,
.main-view #sidebar #working-set-list-container .working-set-view .open-files-container ul li a span {
color: @sidebar-foreground;
}
// Highlights the currently selected file and PhCode.io link
.main-view #sidebar #working-set-list-container .working-set-view .open-files-container ul .selected a span,
.main-view #sidebar #mainNavBar #phcode-io-main-nav {
color: @sidebar-active-file-foreground;
}
/* Status Bar */
// Ensures consistent styling across all status bar elements
#status-bar,
#status-bar #status-info,
#status-bar #status-info #status-file,
#status-bar #status-indicators,
#status-bar #status-indicators #status-overwrite {
background-color: @status-bar-background;
color: @status-bar-foreground;
}
/* Toolbar */
#main-toolbar,
#main-toolbar #plugin-icons-bar {
background-color: @toolbar-background;
}
/* Title Bar */
.content #titlebar {
background-color: @titlebar-background;
}
.content #titlebar .nav li a {
color: @titlebar-foreground;
}
/* Main Editor Window */
// Adds a separator between sidebar and editor content
.content {
border-left: 1px solid @border;
}
// Sets the main editor background and text color
.CodeMirror,
.CodeMirror-scroll {
background-color: @background;
color: @foreground;
}
// Styles for code selection
.CodeMirror-selected {
background-color: @selected-background !important;
}
// Styles line numbers
.CodeMirror-linenumber {
color: @comment;
}
// Code syntax highlighting
.cm-comment {
color: @comment !important;
}
.cm-keyword {
color: @keyword;
}
.cm-atom {
color: @definition;
}
.cm-number {
color: @number;
}
span.cm-def {
color: @definition;
}
span.cm-variable {
color: @variable;
}
span.cm-variable-2 {
color: @variable2;
}
span.cm-variable-3 {
color: @variable3;
}
.cm-link,
.cm-link.cm-variable-2 {
color: @link !important;
}
.cm-string.cm-variable-2.cm-url {
color: @link;
}
.cm-operator {
color: @operator;
}
.cm-string {
color: @string;
}
.cm-string-2 {
color: @string2;
}
.cm-meta {
color: @meta;
}
.cm-builtin {
color: @definition;
}
.cm-tag {
color: @tag;
}
.cm-attribute {
color: @attribute;
}
.cm-header {
color: @header;
}
.cm-hr {
color: @comment;
}
.cm-link {
color: @operator;
}
// Error highlighting
.cm-error {
color: @error;
background-color: @error-background;
}
.cm-qualifier {
color: @variable;
}
.cm-property {
color: @property;
}
.cm-quote {
color: @keyword;
}
.cm-em {
color: @definition;
}
.cm-strong {
color: @number;
}
.cm-image {
color: @tag;
}
.cm-image-marker {
color: @definition;
}
.cm-type {
color: @type;
}
// Styles for matching HTML tags
.CodeMirror-matchingtag {
background-color: @matchingbracket-background;
color: @matchingbracket-color !important;
}
// Enhanced visibility for matching tags in the active line
.CodeMirror-activeline .CodeMirror-matchingtag {
color: @active-matchingbracket-color !important;
background-color: @active-matchingbracket-background;
}
// Styles for matching brackets (parentheses, square brackets, etc.)
.CodeMirror-matchingbracket {
outline: none;
border-bottom: 1px solid @matchingbracket-color;
color: @matchingbracket-color !important;
background-color: @matchingbracket-background;
}
.CodeMirror-activeline .CodeMirror-matchingbracket {
color: @active-matchingbracket-color !important;
background-color: @active-matchingbracket-background;
}
// Code folding marker styling
.CodeMirror-foldmarker {
background-color: @background;
color: @foreground;
border: none;
}
.CodeMirror-activeline .CodeMirror-foldmarker {
background-color: @activeline-background;
color: @activeline-foreground;
border: none;
}
// Active line comment color
.CodeMirror-activeline .cm-comment {
color: @comment-active !important;
}
// Cursor styling for normal mode
.CodeMirror .CodeMirror-cursor {
border-left: 1px solid @cursor !important;
}
// Cursor styling for overwrite (insert) mode
.CodeMirror .CodeMirror-overwrite .CodeMirror-cursor {
border-left: none !important;
border-bottom: 1px solid @cursor;
width: 1.2ex;
}
// Gutter styling (area with line numbers)
.CodeMirror .CodeMirror-gutters {
background-color: @gutter-background;
border-right: 0;
}
.CodeMirror-gutter-elt {
color: @line-number !important;
}
.CodeMirror-activeline .CodeMirror-gutter-elt {
background-color: @active-gutter-background !important;
color: @active-line-number !important;
}
// Active line background
.CodeMirror-activeline-background {
background-color: @activeline-background !important;
}
// Styles for search results
.CodeMirror-searching {
background-color: @searching-background !important;
color: @searching-foreground !important;
}
// Highlights the current search match
.CodeMirror-searching.searching-current-match {
background-color: @searching-match-background !important;
color: @searching-match-foreground !important;
}