Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added github dark theme #5154

Merged
merged 3 commits into from
May 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/ext/themelist.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ var themeData = [
["Tomorrow Night Bright","tomorrow_night_bright" , "dark"],
["Tomorrow Night 80s" ,"tomorrow_night_eighties" , "dark"],
["Twilight" ,"twilight" , "dark"],
["Vibrant Ink" ,"vibrant_ink" , "dark"]
["Vibrant Ink" ,"vibrant_ink" , "dark"],
["GitHub Dark" ,"github_dark" , "dark"]
];


Expand Down
134 changes: 134 additions & 0 deletions src/theme/github_dark.css.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
module.exports = `.ace-github-dark .ace_gutter {
background: #24292e;
color: #7388b5
}

.ace-github-dark .ace_print-margin {
width: 1px;
background: #00204b
}

.ace-github-dark {
background-color: #24292e;
color: #FFFFFF
}

.ace-github-dark .ace_constant.ace_other,
.ace-github-dark .ace_cursor {
color: #FFFFFF
}

.ace-github-dark .ace_marker-layer .ace_selection {
background: #003F8E
}

.ace-github-dark.ace_multiselect .ace_selection.ace_start {
box-shadow: 0 0 3px 0px #24292e;
}

.ace-github-dark .ace_marker-layer .ace_step {
background: rgb(127, 111, 19)
}

.ace-github-dark .ace_marker-layer .ace_bracket {
margin: -1px 0 0 -1px;
border: 1px solid #404F7D
}

.ace-github-dark .ace_marker-layer .ace_active-line {
background: #00346E
}

.ace-github-dark .ace_gutter-active-line {
background-color: #24292e
}

.ace-github-dark .ace_marker-layer .ace_selected-word {
border: 1px solid #003F8E
}

.ace-github-dark .ace_invisible {
color: #404F7D
}

.ace-github-dark .ace_keyword,
.ace-github-dark .ace_meta,
.ace-github-dark .ace_storage,
.ace-github-dark .ace_storage.ace_type,
.ace-github-dark .ace_support.ace_type {
color: #ff7b72
}

.ace-github-dark .ace_keyword.ace_operator {
color: #79c0ff
}

.ace-github-dark .ace_constant.ace_character,
.ace-github-dark .ace_constant.ace_language,
.ace-github-dark .ace_constant.ace_numeric,
.ace-github-dark .ace_keyword.ace_other.ace_unit,
.ace-github-dark .ace_support.ace_constant,
.ace-github-dark .ace_variable.ace_parameter {
color: #FFC58F
}

.ace-github-dark .ace_invalid {
color: #FFFFFF;
background-color: #F99DA5
}

.ace-github-dark .ace_invalid.ace_deprecated {
color: #FFFFFF;
background-color: #ff7b72
}

.ace-github-dark .ace_fold {
background-color: #BBDAFF;
border-color: #FFFFFF
}

.ace-github-dark .ace_entity.ace_name.ace_function,
.ace-github-dark .ace_support.ace_function,
.ace-github-dark .ace_variable {
color: #BBDAFF
}

.ace-github-dark .ace_support.ace_class,
.ace-github-dark .ace_support.ace_type {
color: #FFEEAD
}

.ace-github-dark .ace_heading,
.ace-github-dark .ace_markup.ace_heading,
.ace-github-dark .ace_string {
color: #9fcef6
}

.ace-github-dark .ace_entity.ace_name.ace_tag,
.ace-github-dark .ace_entity.ace_other.ace_attribute-name,
.ace-github-dark .ace_meta.ace_tag,
.ace-github-dark .ace_string.ace_regexp,
.ace-github-dark .ace_variable {
color: #FF9DA4
}

.ace-github-dark .ace_comment {
color: #7285B7
}

.ace-github-dark .ace_indent-guide {
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYJDzqfwPAANXAeNsiA+ZAAAAAElFTkSuQmCC) right repeat-y
}

.ace-github-dark .ace_indent-guide-active {
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQIW2PQ1dX9zzBz5sz/ABCcBFFentLlAAAAAElFTkSuQmCC) right repeat-y;
}

.ace-github-dark .ace_constant.ace_buildin {
color: #0086B3;
}

.ace-github-dark .ace_variable.ace_language {
color: #ffffff;
}
`;
7 changes: 7 additions & 0 deletions src/theme/github_dark.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
exports.isDark = true;
exports.cssClass = "ace-github-dark";
exports.cssText = require("./github_dark.css");

var dom = require("../lib/dom");
dom.importCssString(exports.cssText, exports.cssClass, false);