Skip to content

Commit afdc9c2

Browse files
authored
Ace Editor Dark Theme
This these us based off the 1.4.1 branch that ace editor is using, to have a dark theme instead of the bright one.
1 parent fee4a9f commit afdc9c2

File tree

1 file changed

+116
-0
lines changed

1 file changed

+116
-0
lines changed
Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
define("ace/theme/tomorrow_night",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
2+
3+
exports.isDark = true;
4+
exports.cssClass = "ace-tomorrow-night";
5+
exports.cssText = ".ace-tomorrow-night .ace_gutter {\
6+
background: #25282c;\
7+
color: #C5C8C6\
8+
}\
9+
.ace-tomorrow-night .ace_print-margin {\
10+
width: 1px;\
11+
background: #25282c\
12+
}\
13+
.ace-tomorrow-night {\
14+
background-color: #1D1F21;\
15+
color: #C5C8C6\
16+
}\
17+
.ace-tomorrow-night .ace_cursor {\
18+
color: #AEAFAD\
19+
}\
20+
.ace-tomorrow-night .ace_marker-layer .ace_selection {\
21+
background: #373B41\
22+
}\
23+
.ace-tomorrow-night.ace_multiselect .ace_selection.ace_start {\
24+
box-shadow: 0 0 3px 0px #1D1F21;\
25+
}\
26+
.ace-tomorrow-night .ace_marker-layer .ace_step {\
27+
background: rgb(102, 82, 0)\
28+
}\
29+
.ace-tomorrow-night .ace_marker-layer .ace_bracket {\
30+
margin: -1px 0 0 -1px;\
31+
border: 1px solid #4B4E55\
32+
}\
33+
.ace-tomorrow-night .ace_marker-layer .ace_active-line {\
34+
background: #282A2E\
35+
}\
36+
.ace-tomorrow-night .ace_gutter-active-line {\
37+
background-color: #282A2E\
38+
}\
39+
.ace-tomorrow-night .ace_marker-layer .ace_selected-word {\
40+
border: 1px solid #373B41\
41+
}\
42+
.ace-tomorrow-night .ace_invisible {\
43+
color: #4B4E55\
44+
}\
45+
.ace-tomorrow-night .ace_keyword,\
46+
.ace-tomorrow-night .ace_meta,\
47+
.ace-tomorrow-night .ace_storage,\
48+
.ace-tomorrow-night .ace_storage.ace_type,\
49+
.ace-tomorrow-night .ace_support.ace_type {\
50+
color: #B294BB\
51+
}\
52+
.ace-tomorrow-night .ace_keyword.ace_operator {\
53+
color: #8ABEB7\
54+
}\
55+
.ace-tomorrow-night .ace_constant.ace_character,\
56+
.ace-tomorrow-night .ace_constant.ace_language,\
57+
.ace-tomorrow-night .ace_constant.ace_numeric,\
58+
.ace-tomorrow-night .ace_keyword.ace_other.ace_unit,\
59+
.ace-tomorrow-night .ace_support.ace_constant,\
60+
.ace-tomorrow-night .ace_variable.ace_parameter {\
61+
color: #DE935F\
62+
}\
63+
.ace-tomorrow-night .ace_constant.ace_other {\
64+
color: #CED1CF\
65+
}\
66+
.ace-tomorrow-night .ace_invalid {\
67+
color: #CED2CF;\
68+
background-color: #DF5F5F\
69+
}\
70+
.ace-tomorrow-night .ace_invalid.ace_deprecated {\
71+
color: #CED2CF;\
72+
background-color: #B798BF\
73+
}\
74+
.ace-tomorrow-night .ace_fold {\
75+
background-color: #81A2BE;\
76+
border-color: #C5C8C6\
77+
}\
78+
.ace-tomorrow-night .ace_entity.ace_name.ace_function,\
79+
.ace-tomorrow-night .ace_support.ace_function,\
80+
.ace-tomorrow-night .ace_variable {\
81+
color: #81A2BE\
82+
}\
83+
.ace-tomorrow-night .ace_support.ace_class,\
84+
.ace-tomorrow-night .ace_support.ace_type {\
85+
color: #F0C674\
86+
}\
87+
.ace-tomorrow-night .ace_heading,\
88+
.ace-tomorrow-night .ace_markup.ace_heading,\
89+
.ace-tomorrow-night .ace_string {\
90+
color: #B5BD68\
91+
}\
92+
.ace-tomorrow-night .ace_entity.ace_name.ace_tag,\
93+
.ace-tomorrow-night .ace_entity.ace_other.ace_attribute-name,\
94+
.ace-tomorrow-night .ace_meta.ace_tag,\
95+
.ace-tomorrow-night .ace_string.ace_regexp,\
96+
.ace-tomorrow-night .ace_variable {\
97+
color: #CC6666\
98+
}\
99+
.ace-tomorrow-night .ace_comment {\
100+
color: #969896\
101+
}\
102+
.ace-tomorrow-night .ace_indent-guide {\
103+
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYHB3d/8PAAOIAdULw8qMAAAAAElFTkSuQmCC) right repeat-y\
104+
}";
105+
106+
var dom = require("../lib/dom");
107+
dom.importCssString(exports.cssText, exports.cssClass);
108+
});
109+
(function() {
110+
window.require(["ace/theme/tomorrow_night"], function(m) {
111+
if (typeof module == "object" && typeof exports == "object" && module) {
112+
module.exports = m;
113+
}
114+
});
115+
})();
116+

0 commit comments

Comments
 (0)