@@ -58,6 +59,7 @@ import SideBar from './SideBar';
import Editor from './Editor';
import Preview from './Preview';
import Tour from './Tour';
+import EditorInPageButtons from './EditorInPageButtons';
import StickyComment from './gutters/StickyComment';
import CurrentDiscussion from './gutters/CurrentDiscussion';
import FindReplace from './FindReplace';
@@ -75,6 +77,7 @@ export default {
Editor,
Preview,
Tour,
+ EditorInPageButtons,
StickyComment,
CurrentDiscussion,
FindReplace,
@@ -96,6 +99,12 @@ export default {
...mapGetters('data', [
'layoutSettings',
]),
+ ...mapGetters('theme', [
+ 'currEditTheme',
+ ]),
+ currTheme() {
+ return `edit-theme--${this.currEditTheme || 'default'}`;
+ },
showFindReplace() {
return !!store.state.findReplace.type;
},
diff --git a/src/components/common/DropdownMenu.vue b/src/components/common/DropdownMenu.vue
new file mode 100644
index 00000000..549872c1
--- /dev/null
+++ b/src/components/common/DropdownMenu.vue
@@ -0,0 +1,127 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/icons/FindReplace.vue b/src/icons/FindReplace.vue
new file mode 100644
index 00000000..3fea3162
--- /dev/null
+++ b/src/icons/FindReplace.vue
@@ -0,0 +1,3 @@
+
+
+
diff --git a/src/icons/Search.vue b/src/icons/Search.vue
index 713fe6eb..a8d8834f 100644
--- a/src/icons/Search.vue
+++ b/src/icons/Search.vue
@@ -1,3 +1,3 @@
-
+
diff --git a/src/icons/SelectTheme.vue b/src/icons/SelectTheme.vue
new file mode 100644
index 00000000..9760698c
--- /dev/null
+++ b/src/icons/SelectTheme.vue
@@ -0,0 +1,3 @@
+
+
+
diff --git a/src/icons/index.js b/src/icons/index.js
index d8a231a7..467ebf50 100644
--- a/src/icons/index.js
+++ b/src/icons/index.js
@@ -59,6 +59,9 @@ import Key from './Key';
import DotsHorizontal from './DotsHorizontal';
import Seal from './Seal';
import SwitchTheme from './SwitchTheme';
+import Search from './Search';
+import FindReplace from './FindReplace';
+import SelectTheme from './SelectTheme';
Vue.component('iconProvider', Provider);
Vue.component('iconFormatBold', FormatBold);
@@ -120,3 +123,6 @@ Vue.component('iconKey', Key);
Vue.component('iconDotsHorizontal', DotsHorizontal);
Vue.component('iconSeal', Seal);
Vue.component('iconSwitchTheme', SwitchTheme);
+Vue.component('iconSearch', Search);
+Vue.component('iconFindReplace', FindReplace);
+Vue.component('iconSelectTheme', SelectTheme);
diff --git a/src/store/index.js b/src/store/index.js
index 6365c9dc..f81e6ac8 100644
--- a/src/store/index.js
+++ b/src/store/index.js
@@ -19,6 +19,7 @@ import syncedContent from './syncedContent';
import userInfo from './userInfo';
import workspace from './workspace';
import img from './img';
+import theme from './theme';
import locationTemplate from './locationTemplate';
import emptyPublishLocation from '../data/empties/emptyPublishLocation';
import emptySyncLocation from '../data/empties/emptySyncLocation';
@@ -49,6 +50,7 @@ const store = new Vuex.Store({
userInfo,
workspace,
img,
+ theme,
},
state: {
light: false,
diff --git a/src/store/theme.js b/src/store/theme.js
new file mode 100644
index 00000000..ffc36a02
--- /dev/null
+++ b/src/store/theme.js
@@ -0,0 +1,55 @@
+const localKey = 'theme/currEditTheme';
+
+export default {
+ namespaced: true,
+ state: {
+ // 当前编辑主题
+ currEditTheme: null,
+ initEditTheme: false,
+ },
+ mutations: {
+ setEditTheme: (state, value) => {
+ state.currEditTheme = value;
+ },
+ setInitEditTheme: (state, value) => {
+ state.initEditTheme = value;
+ },
+ },
+ getters: {
+ currEditTheme: state => state.currEditTheme,
+ initEditTheme: state => state.initEditTheme,
+ },
+ actions: {
+ async setEditTheme({ commit }, theme) {
+ commit('setEditTheme', theme);
+ commit('setInitEditTheme', true);
+ localStorage.setItem(localKey, theme);
+ // 如果不是default 则加载样式
+ if (!theme || theme === 'default') {
+ return;
+ }
+ const themeStyle = document.getElementById(`edit-theme-${theme}`);
+ if (themeStyle) {
+ return;
+ }
+ const script = document.createElement('script');
+ let timeout;
+ try {
+ await new Promise((resolve, reject) => {
+ script.onload = resolve;
+ script.onerror = reject;
+ script.src = `/themes/edit-theme-${theme}.js`;
+ try {
+ document.head.appendChild(script);
+ timeout = setTimeout(reject, 30);
+ } catch (e) {
+ reject(e);
+ }
+ });
+ } finally {
+ clearTimeout(timeout);
+ document.head.removeChild(script);
+ }
+ },
+ },
+};
diff --git a/src/styles/markdownHighlighting.scss b/src/styles/markdownHighlighting.scss
index 65bcebf7..c992f2b0 100644
--- a/src/styles/markdownHighlighting.scss
+++ b/src/styles/markdownHighlighting.scss
@@ -188,28 +188,28 @@
.h1,
.h11 {
- font-size: 2em;
+ font-size: 1.7em;
}
.h2,
.h22 {
- font-size: 1.5em;
+ font-size: 1.4em;
}
.h3 {
- font-size: 1.17em;
+ font-size: 1.2em;
}
.h4 {
- font-size: 1em;
+ font-size: 1.1em;
}
.h5 {
- font-size: 0.83em;
+ font-size: 1em;
}
.h6 {
- font-size: 0.75em;
+ font-size: 0.9em;
}
.cl-hash {
diff --git a/static/themes/edit-theme-azure.js b/static/themes/edit-theme-azure.js
new file mode 100644
index 00000000..0d9c6c00
--- /dev/null
+++ b/static/themes/edit-theme-azure.js
@@ -0,0 +1,72 @@
+function init_edit_theme_azure() {
+ const style = document.createElement('style');
+ style.id = 'edit-theme-azure';
+ style.type = 'text/css';
+ style.innerHTML = "/* 默认字体颜色、光标颜色、背景颜色*/\n\
+.edit-theme--azure .editor__inner {\n\
+ color: #fff;\n\
+ caret-color: #fff;\n\
+}\n\
+.edit-theme--azure .editor {\n\
+ background-color: #181D26;\n\
+}\n\
+/* 标题颜色 */\n\
+.edit-theme--azure .editor__inner .cn-head,\n\
+.edit-theme--azure .editor-in-page-buttons .icon {\n\
+ color: #64aeb3;\n\
+}\n\
+/* 加粗颜色 */\n\
+.edit-theme--azure .editor__inner .cn-strong {\n\
+ color: #508aaa;\n\
+}\n\
+/* 信息块颜色 */\n\
+.edit-theme--azure .editor__inner .blockquote {\n\
+ color: #52708b;\n\
+}\n\
+/* 源信息、md标记符号等非关键信息的颜色 */\n\
+.edit-theme--azure .editor__inner .cl,\n\
+.edit-theme--azure .editor__inner .hr,\n\
+.edit-theme--azure .editor__inner .link,\n\
+.edit-theme--azure .editor__inner .linkref, \n\
+.edit-theme--azure .editor__inner .linkdef .url {\n\
+ color: rgba(139,158,177,0.8);\n\
+}\n\
+.edit-theme--azure .editor__inner .cn-toc, \n\
+.edit-theme--azure .editor__inner .code,\n\
+.edit-theme--azure .editor__inner .img,\n\
+.edit-theme--azure .editor__inner .img-wrapper,\n\
+.edit-theme--azure .editor__inner .imgref,\n\
+.edit-theme--azure .editor__inner .cl-toc {\n\
+ color: rgba(139,158,177,0.8);\n\
+ background-color: rgba(0,0,0,0.33);\n\
+}\n\
+/* 代码块颜色 */\n\
+.edit-theme--azure .editor__inner .cn-code {\n\
+ color: #6AB0A3;\n\
+}\n\
+/* 链接颜色 */\n\
+.edit-theme--azure .editor__inner .img .cl-underlined-text,\n\
+.edit-theme--azure .editor__inner .imgref .cl-underlined-text,\n\
+.edit-theme--azure .editor__inner .link .cl-underlined-text,\n\
+.edit-theme--azure .editor__inner .linkref .cl-underlined-text {\n\
+ color: #64aeb3;\n\
+}\n\
+/* 图片原始链接背景颜色 */\n\
+.edit-theme--azure .editor__inner .img-wrapper .img {\n\
+ background-color: transparent;\n\
+}\n\
+.edit-theme--azure .editor__inner .keyword {\n\
+ color: #508aaa;\n\
+}\n\
+.edit-theme--azure .editor__inner .email,\n\
+.edit-theme--azure .editor__inner .cl-title,\n\
+.edit-theme--azure .editor__inner .tag,\n\
+.edit-theme--azure .editor__inner .latex,\n\
+.edit-theme--azure .editor__inner .math,\n\
+.edit-theme--azure .editor__inner .entity,\n\
+.edit-theme--azure .editor__inner .pre [class*='language-'] {\n\
+ color: #fff;\n\
+}";
+ document.head.appendChild(style);
+}
+init_edit_theme_azure();
\ No newline at end of file
diff --git a/static/themes/edit-theme-carbonight.js b/static/themes/edit-theme-carbonight.js
new file mode 100644
index 00000000..e670a1c6
--- /dev/null
+++ b/static/themes/edit-theme-carbonight.js
@@ -0,0 +1,72 @@
+function init_edit_theme_carbonight() {
+ const style = document.createElement('style');
+ style.id = 'edit-theme-carbonight';
+ style.type = 'text/css';
+ style.innerHTML = "/* 默认字体颜色、光标颜色、背景颜色*/\n\
+.edit-theme--carbonight .editor__inner {\n\
+ color: #B0B0B0;\n\
+ caret-color: #B0B0B0;\n\
+}\n\
+.edit-theme--carbonight .editor {\n\
+ background-color: #2E2C2B;\n\
+}\n\
+/* 标题颜色 */\n\
+.edit-theme--carbonight .editor__inner .cn-head,\n\
+.edit-theme--carbonight .editor-in-page-buttons .icon {\n\
+ color: #B0B0B0;\n\
+}\n\
+/* 加粗颜色 */\n\
+.edit-theme--carbonight .editor__inner .cn-strong {\n\
+ color: #eeeeee;\n\
+}\n\
+/* 信息块颜色 */\n\
+.edit-theme--carbonight .editor__inner .blockquote {\n\
+ color: #8C8C8C;\n\
+}\n\
+/* 源信息、md标记符号等非关键信息的颜色 */\n\
+.edit-theme--carbonight .editor__inner .cl,\n\
+.edit-theme--carbonight .editor__inner .hr,\n\
+.edit-theme--carbonight .editor__inner .link,\n\
+.edit-theme--carbonight .editor__inner .linkref, \n\
+.edit-theme--carbonight .editor__inner .linkdef .url {\n\
+ color: rgba(139,158,177,0.8);\n\
+}\n\
+.edit-theme--carbonight .editor__inner .cn-toc, \n\
+.edit-theme--carbonight .editor__inner .code,\n\
+.edit-theme--carbonight .editor__inner .img,\n\
+.edit-theme--carbonight .editor__inner .img-wrapper,\n\
+.edit-theme--carbonight .editor__inner .imgref,\n\
+.edit-theme--carbonight .editor__inner .cl-toc {\n\
+ color: rgba(139,158,177,0.8);\n\
+ background-color: rgba(0,0,0,0.33);\n\
+}\n\
+/* 代码块颜色 */\n\
+.edit-theme--carbonight .editor__inner .cn-code {\n\
+ color: #fff;\n\
+}\n\
+/* 链接颜色 */\n\
+.edit-theme--carbonight .editor__inner .img .cl-underlined-text,\n\
+.edit-theme--carbonight .editor__inner .imgref .cl-underlined-text,\n\
+.edit-theme--carbonight .editor__inner .link .cl-underlined-text,\n\
+.edit-theme--carbonight .editor__inner .linkref .cl-underlined-text {\n\
+ color: #fff;\n\
+}\n\
+/* 图片原始链接背景颜色 */\n\
+.edit-theme--carbonight .editor__inner .img-wrapper .img {\n\
+ background-color: transparent;\n\
+}\n\
+.edit-theme--carbonight .editor__inner .keyword {\n\
+ color: #47596b;\n\
+}\n\
+.edit-theme--carbonight .editor__inner .email,\n\
+.edit-theme--carbonight .editor__inner .cl-title,\n\
+.edit-theme--carbonight .editor__inner .tag,\n\
+.edit-theme--carbonight .editor__inner .latex,\n\
+.edit-theme--carbonight .editor__inner .math,\n\
+.edit-theme--carbonight .editor__inner .entity,\n\
+.edit-theme--carbonight .editor__inner .pre [class*='language-'] {\n\
+ color: #B0B0B0;\n\
+}";
+ document.head.appendChild(style);
+}
+init_edit_theme_carbonight();
\ No newline at end of file
diff --git a/static/themes/edit-theme-clouds.js b/static/themes/edit-theme-clouds.js
new file mode 100644
index 00000000..12ccb8dc
--- /dev/null
+++ b/static/themes/edit-theme-clouds.js
@@ -0,0 +1,72 @@
+function init_edit_theme_clouds() {
+ const style = document.createElement('style');
+ style.id = 'edit-theme-clouds';
+ style.type = 'text/css';
+ style.innerHTML = "/* 默认字体颜色、光标颜色、背景颜色*/\n\
+.edit-theme--clouds .editor__inner {\n\
+ color: #000;\n\
+ caret-color: #000;\n\
+}\n\
+.edit-theme--clouds .editor {\n\
+ background-color: #fff;\n\
+}\n\
+/* 标题颜色 */\n\
+.edit-theme--clouds .editor__inner .cn-head,\n\
+.edit-theme--clouds .editor-in-page-buttons .icon {\n\
+ color: #46A609;\n\
+}\n\
+/* 加粗颜色 */\n\
+.edit-theme--clouds .editor__inner .cn-strong {\n\
+ color: #AF956F;\n\
+}\n\
+/* 信息块颜色 */\n\
+.edit-theme--clouds .editor__inner .blockquote {\n\
+ color: #5D90CD;\n\
+}\n\
+/* 源信息、md标记符号等非关键信息的颜色 */\n\
+.edit-theme--clouds .editor__inner .cl,\n\
+.edit-theme--clouds .editor__inner .hr,\n\
+.edit-theme--clouds .editor__inner .link,\n\
+.edit-theme--clouds .editor__inner .linkref, \n\
+.edit-theme--clouds .editor__inner .linkdef .url {\n\
+ color: rgba(102,128,153,0.6);\n\
+}\n\
+.edit-theme--clouds .editor__inner .cn-toc, \n\
+.edit-theme--clouds .editor__inner .code,\n\
+.edit-theme--clouds .editor__inner .img,\n\
+.edit-theme--clouds .editor__inner .img-wrapper,\n\
+.edit-theme--clouds .editor__inner .imgref,\n\
+.edit-theme--clouds .editor__inner .cl-toc {\n\
+ color: rgba(102,128,153,0.6);\n\
+ background-color: rgba(102,128,153,0.075);\n\
+}\n\
+/* 代码块颜色 */\n\
+.edit-theme--clouds .editor__inner .cn-code {\n\
+ color: #C52727;\n\
+}\n\
+/* 链接颜色 */\n\
+.edit-theme--clouds .editor__inner .img .cl-underlined-text,\n\
+.edit-theme--clouds .editor__inner .imgref .cl-underlined-text,\n\
+.edit-theme--clouds .editor__inner .link .cl-underlined-text,\n\
+.edit-theme--clouds .editor__inner .linkref .cl-underlined-text {\n\
+ color: #5D90CD;\n\
+}\n\
+/* 图片原始链接背景颜色 */\n\
+.edit-theme--clouds .editor__inner .img-wrapper .img {\n\
+ background-color: transparent;\n\
+}\n\
+.edit-theme--clouds .editor__inner .keyword {\n\
+ color: #47596b;\n\
+}\n\
+.edit-theme--clouds .editor__inner .email,\n\
+.edit-theme--clouds .editor__inner .cl-title,\n\
+.edit-theme--clouds .editor__inner .tag,\n\
+.edit-theme--clouds .editor__inner .latex,\n\
+.edit-theme--clouds .editor__inner .math,\n\
+.edit-theme--clouds .editor__inner .entity,\n\
+.edit-theme--clouds .editor__inner .pre [class*='language-'] {\n\
+ color: #000;\n\
+}";
+ document.head.appendChild(style);
+}
+init_edit_theme_clouds();
\ No newline at end of file
diff --git a/static/themes/edit-theme-clouds_midnight.js b/static/themes/edit-theme-clouds_midnight.js
new file mode 100644
index 00000000..3cade637
--- /dev/null
+++ b/static/themes/edit-theme-clouds_midnight.js
@@ -0,0 +1,72 @@
+function init_edit_theme_clouds_midnight() {
+ const style = document.createElement('style');
+ style.id = 'edit-theme-clouds_midnight';
+ style.type = 'text/css';
+ style.innerHTML = "/* 默认字体颜色、光标颜色、背景颜色*/\n\
+.edit-theme--clouds_midnight .editor__inner {\n\
+ color: #929292;\n\
+ caret-color: #929292;\n\
+}\n\
+.edit-theme--clouds_midnight .editor {\n\
+ background-color: #191919;\n\
+}\n\
+/* 标题颜色 */\n\
+.edit-theme--clouds_midnight .editor__inner .cn-head,\n\
+.edit-theme--clouds_midnight .editor-in-page-buttons .icon {\n\
+ color: #46A609;\n\
+}\n\
+/* 加粗颜色 */\n\
+.edit-theme--clouds_midnight .editor__inner .cn-strong {\n\
+ color: #927C5D;\n\
+}\n\
+/* 信息块颜色 */\n\
+.edit-theme--clouds_midnight .editor__inner .blockquote {\n\
+ color: #5D90CD;\n\
+}\n\
+/* 源信息、md标记符号等非关键信息的颜色 */\n\
+.edit-theme--clouds_midnight .editor__inner .cl,\n\
+.edit-theme--clouds_midnight .editor__inner .hr,\n\
+.edit-theme--clouds_midnight .editor__inner .link,\n\
+.edit-theme--clouds_midnight .editor__inner .linkref, \n\
+.edit-theme--clouds_midnight .editor__inner .linkdef .url {\n\
+ color: rgba(139,158,177,0.8);\n\
+}\n\
+.edit-theme--clouds_midnight .editor__inner .cn-toc, \n\
+.edit-theme--clouds_midnight .editor__inner .code,\n\
+.edit-theme--clouds_midnight .editor__inner .img,\n\
+.edit-theme--clouds_midnight .editor__inner .img-wrapper,\n\
+.edit-theme--clouds_midnight .editor__inner .imgref,\n\
+.edit-theme--clouds_midnight .editor__inner .cl-toc {\n\
+ color: rgba(139,158,177,0.8);\n\
+ background-color: rgba(0,0,0,0.33);\n\
+}\n\
+/* 代码块颜色 */\n\
+.edit-theme--clouds_midnight .editor__inner .cn-code {\n\
+ color: #E92E2E;\n\
+}\n\
+/* 链接颜色 */\n\
+.edit-theme--clouds_midnight .editor__inner .img .cl-underlined-text,\n\
+.edit-theme--clouds_midnight .editor__inner .imgref .cl-underlined-text,\n\
+.edit-theme--clouds_midnight .editor__inner .link .cl-underlined-text,\n\
+.edit-theme--clouds_midnight .editor__inner .linkref .cl-underlined-text {\n\
+ color: #5D90CD;\n\
+}\n\
+/* 图片原始链接背景颜色 */\n\
+.edit-theme--clouds_midnight .editor__inner .img-wrapper .img {\n\
+ background-color: transparent;\n\
+}\n\
+.edit-theme--clouds_midnight .editor__inner .keyword {\n\
+ color: #47596b;\n\
+}\n\
+.edit-theme--clouds_midnight .editor__inner .email,\n\
+.edit-theme--clouds_midnight .editor__inner .cl-title,\n\
+.edit-theme--clouds_midnight .editor__inner .tag,\n\
+.edit-theme--clouds_midnight .editor__inner .latex,\n\
+.edit-theme--clouds_midnight .editor__inner .math,\n\
+.edit-theme--clouds_midnight .editor__inner .entity,\n\
+.edit-theme--clouds_midnight .editor__inner .pre [class*='language-'] {\n\
+ color: #929292;\n\
+}";
+ document.head.appendChild(style);
+}
+init_edit_theme_clouds_midnight();
\ No newline at end of file
diff --git a/static/themes/edit-theme-dawn.js b/static/themes/edit-theme-dawn.js
new file mode 100644
index 00000000..02e3d0d2
--- /dev/null
+++ b/static/themes/edit-theme-dawn.js
@@ -0,0 +1,72 @@
+function init_edit_theme_dawn() {
+ const style = document.createElement('style');
+ style.id = 'edit-theme-dawn';
+ style.type = 'text/css';
+ style.innerHTML = "/* 默认字体颜色、光标颜色、背景颜色*/\n\
+.edit-theme--dawn .editor__inner {\n\
+ color: #080808;\n\
+ caret-color: #080808;\n\
+}\n\
+.edit-theme--dawn .editor {\n\
+ background-color: #F9F9F9;\n\
+}\n\
+/* 标题颜色 */\n\
+.edit-theme--dawn .editor__inner .cn-head,\n\
+.edit-theme--dawn .editor-in-page-buttons .icon {\n\
+ color: #19356D;\n\
+}\n\
+/* 加粗颜色 */\n\
+.edit-theme--dawn .editor__inner .cn-strong {\n\
+ color: #794938;\n\
+}\n\
+/* 信息块颜色 */\n\
+.edit-theme--dawn .editor__inner .blockquote {\n\
+ color: #811F24;\n\
+}\n\
+/* 源信息、md标记符号等非关键信息的颜色 */\n\
+.edit-theme--dawn .editor__inner .cl,\n\
+.edit-theme--dawn .editor__inner .hr,\n\
+.edit-theme--dawn .editor__inner .link,\n\
+.edit-theme--dawn .editor__inner .linkref, \n\
+.edit-theme--dawn .editor__inner .linkdef .url {\n\
+ color: rgba(102,128,153,0.6);\n\
+}\n\
+.edit-theme--dawn .editor__inner .cn-toc, \n\
+.edit-theme--dawn .editor__inner .code,\n\
+.edit-theme--dawn .editor__inner .img,\n\
+.edit-theme--dawn .editor__inner .img-wrapper,\n\
+.edit-theme--dawn .editor__inner .imgref,\n\
+.edit-theme--dawn .editor__inner .cl-toc {\n\
+ color: rgba(102,128,153,0.6);\n\
+ background-color: rgba(102,128,153,0.075);\n\
+}\n\
+/* 代码块颜色 */\n\
+.edit-theme--dawn .editor__inner .cn-code {\n\
+ color: #693A17;\n\
+}\n\
+/* 链接颜色 */\n\
+.edit-theme--dawn .editor__inner .img .cl-underlined-text,\n\
+.edit-theme--dawn .editor__inner .imgref .cl-underlined-text,\n\
+.edit-theme--dawn .editor__inner .link .cl-underlined-text,\n\
+.edit-theme--dawn .editor__inner .linkref .cl-underlined-text {\n\
+ color: #0B6125;\n\
+}\n\
+/* 图片原始链接背景颜色 */\n\
+.edit-theme--dawn .editor__inner .img-wrapper .img {\n\
+ background-color: transparent;\n\
+}\n\
+.edit-theme--dawn .editor__inner .keyword {\n\
+ color: #47596b;\n\
+}\n\
+.edit-theme--dawn .editor__inner .email,\n\
+.edit-theme--dawn .editor__inner .cl-title,\n\
+.edit-theme--dawn .editor__inner .tag,\n\
+.edit-theme--dawn .editor__inner .latex,\n\
+.edit-theme--dawn .editor__inner .math,\n\
+.edit-theme--dawn .editor__inner .entity,\n\
+.edit-theme--dawn .editor__inner .pre [class*='language-'] {\n\
+ color: #080808;\n\
+}";
+ document.head.appendChild(style);
+}
+init_edit_theme_dawn();
\ No newline at end of file
diff --git a/static/themes/edit-theme-github.js b/static/themes/edit-theme-github.js
new file mode 100644
index 00000000..a78e0258
--- /dev/null
+++ b/static/themes/edit-theme-github.js
@@ -0,0 +1,73 @@
+function init_edit_theme_github() {
+ const style = document.createElement('style');
+ style.id = 'edit-theme-github';
+ style.type = 'text/css';
+ style.innerHTML = "/* 默认字体颜色、光标颜色、背景颜色*/\n\
+.edit-theme--github .editor__inner {\n\
+ color: #000;\n\
+ caret-color: #000;\n\
+ background-color: #fff;\n\
+}\n\
+.edit-theme--github .editor {\n\
+ background-color: #fff;\n\
+}\n\
+/* 标题颜色 */\n\
+.edit-theme--github .editor__inner .cn-head,\n\
+.edit-theme--github .editor-in-page-buttons .icon {\n\
+ color: #AAAAAA;\n\
+}\n\
+/* 加粗颜色 */\n\
+.edit-theme--github .editor__inner .cn-strong {\n\
+ color: #000;\n\
+}\n\
+/* 信息块颜色 */\n\
+.edit-theme--github .editor__inner .blockquote {\n\
+ color: rgba(0,0,0,0.48);\n\
+}\n\
+/* 源信息、md标记符号等非关键信息的颜色 */\n\
+.edit-theme--github .editor__inner .cl,\n\
+.edit-theme--github .editor__inner .hr,\n\
+.edit-theme--github .editor__inner .link,\n\
+.edit-theme--github .editor__inner .linkref, \n\
+.edit-theme--github .editor__inner .linkdef .url {\n\
+ color: rgba(0,0,0,0.28);\n\
+}\n\
+.edit-theme--github .editor__inner .cn-toc, \n\
+.edit-theme--github .editor__inner .code,\n\
+.edit-theme--github .editor__inner .img,\n\
+.edit-theme--github .editor__inner .img-wrapper,\n\
+.edit-theme--github .editor__inner .imgref,\n\
+.edit-theme--github .editor__inner .cl-toc {\n\
+ color: rgba(0,0,0,0.28);\n\
+ background-color: rgba(102,128,153,0.075);\n\
+}\n\
+/* 代码块颜色 */\n\
+.edit-theme--github .editor__inner .cn-code {\n\
+ color: #0086B3;\n\
+}\n\
+/* 链接颜色 */\n\
+.edit-theme--github .editor__inner .img .cl-underlined-text,\n\
+.edit-theme--github .editor__inner .imgref .cl-underlined-text,\n\
+.edit-theme--github .editor__inner .link .cl-underlined-text,\n\
+.edit-theme--github .editor__inner .linkref .cl-underlined-text {\n\
+ color: #D14;\n\
+}\n\
+/* 图片原始链接背景颜色 */\n\
+.edit-theme--github .editor__inner .img-wrapper .img {\n\
+ background-color: transparent;\n\
+}\n\
+.edit-theme--github .editor__inner .keyword {\n\
+ color: rgba(0,0,0,0.75);\n\
+}\n\
+.edit-theme--github .editor__inner .email,\n\
+.edit-theme--github .editor__inner .cl-title,\n\
+.edit-theme--github .editor__inner .tag,\n\
+.edit-theme--github .editor__inner .latex,\n\
+.edit-theme--github .editor__inner .math,\n\
+.edit-theme--github .editor__inner .entity,\n\
+.edit-theme--github .editor__inner .pre [class*='language-'] {\n\
+ color: #29333d;\n\
+}";
+ document.head.appendChild(style);
+}
+init_edit_theme_github();
\ No newline at end of file
diff --git a/static/themes/edit-theme-iceberg_contrast.js b/static/themes/edit-theme-iceberg_contrast.js
new file mode 100644
index 00000000..12e44baf
--- /dev/null
+++ b/static/themes/edit-theme-iceberg_contrast.js
@@ -0,0 +1,72 @@
+function init_edit_theme_iceberg_contrast() {
+ const style = document.createElement('style');
+ style.id = 'edit-theme-iceberg_contrast';
+ style.type = 'text/css';
+ style.innerHTML = "/* 默认字体颜色、光标颜色、背景颜色*/\n\
+.edit-theme--iceberg_contrast .editor__inner {\n\
+ color: #BDD6DB;\n\
+ caret-color: #fff;\n\
+}\n\
+.edit-theme--iceberg_contrast .editor {\n\
+ background-color: #0b0e0e;\n\
+}\n\
+/* 标题颜色 */\n\
+.edit-theme--iceberg_contrast .editor__inner .cn-head,\n\
+.edit-theme--iceberg_contrast .editor-in-page-buttons .icon {\n\
+ color: #fff;\n\
+}\n\
+/* 加粗颜色 */\n\
+.edit-theme--iceberg_contrast .editor__inner .cn-strong {\n\
+ color: #B1E2F2;\n\
+}\n\
+/* 信息块颜色 */\n\
+.edit-theme--iceberg_contrast .editor__inner .blockquote {\n\
+ color: #ffffff;\n\
+}\n\
+/* 源信息、md标记符号等非关键信息的颜色 */\n\
+.edit-theme--iceberg_contrast .editor__inner .cl,\n\
+.edit-theme--iceberg_contrast .editor__inner .hr,\n\
+.edit-theme--iceberg_contrast .editor__inner .link,\n\
+.edit-theme--iceberg_contrast .editor__inner .linkref, \n\
+.edit-theme--iceberg_contrast .editor__inner .linkdef .url {\n\
+ color: rgba(139,158,177,0.8);\n\
+}\n\
+.edit-theme--iceberg_contrast .editor__inner .cn-toc, \n\
+.edit-theme--iceberg_contrast .editor__inner .code,\n\
+.edit-theme--iceberg_contrast .editor__inner .img,\n\
+.edit-theme--iceberg_contrast .editor__inner .img-wrapper,\n\
+.edit-theme--iceberg_contrast .editor__inner .imgref,\n\
+.edit-theme--iceberg_contrast .editor__inner .cl-toc {\n\
+ color: rgba(139,158,177,0.8);\n\
+ background-color: rgba(0,0,0,0.33);\n\
+}\n\
+/* 代码块颜色 */\n\
+.edit-theme--iceberg_contrast .editor__inner .cn-code {\n\
+ color: #fff;\n\
+}\n\
+/* 链接颜色 */\n\
+.edit-theme--iceberg_contrast .editor__inner .img .cl-underlined-text,\n\
+.edit-theme--iceberg_contrast .editor__inner .imgref .cl-underlined-text,\n\
+.edit-theme--iceberg_contrast .editor__inner .link .cl-underlined-text,\n\
+.edit-theme--iceberg_contrast .editor__inner .linkref .cl-underlined-text {\n\
+ color: #fff;\n\
+}\n\
+/* 图片原始链接背景颜色 */\n\
+.edit-theme--iceberg_contrast .editor__inner .img-wrapper .img {\n\
+ background-color: transparent;\n\
+}\n\
+.edit-theme--iceberg_contrast .editor__inner .keyword {\n\
+ color: #fff;\n\
+}\n\
+.edit-theme--iceberg_contrast .editor__inner .email,\n\
+.edit-theme--iceberg_contrast .editor__inner .cl-title,\n\
+.edit-theme--iceberg_contrast .editor__inner .tag,\n\
+.edit-theme--iceberg_contrast .editor__inner .latex,\n\
+.edit-theme--iceberg_contrast .editor__inner .math,\n\
+.edit-theme--iceberg_contrast .editor__inner .entity,\n\
+.edit-theme--iceberg_contrast .editor__inner .pre [class*='language-'] {\n\
+ color: #BDD6DB;\n\
+}";
+ document.head.appendChild(style);
+}
+init_edit_theme_iceberg_contrast();
\ No newline at end of file
diff --git a/static/themes/edit-theme-mintchoc.js b/static/themes/edit-theme-mintchoc.js
new file mode 100644
index 00000000..05795dc9
--- /dev/null
+++ b/static/themes/edit-theme-mintchoc.js
@@ -0,0 +1,72 @@
+function init_edit_theme_mintchoc() {
+ const style = document.createElement('style');
+ style.id = 'edit-theme-mintchoc';
+ style.type = 'text/css';
+ style.innerHTML = "/* 默认字体颜色、光标颜色、背景颜色*/\n\
+.edit-theme--mintchoc .editor__inner {\n\
+ color: #BABABA;\n\
+ caret-color: #BABABA;\n\
+}\n\
+.edit-theme--mintchoc .editor {\n\
+ background-color: #2b221c;\n\
+}\n\
+/* 标题颜色 */\n\
+.edit-theme--mintchoc .editor__inner .cn-head,\n\
+.edit-theme--mintchoc .editor-in-page-buttons .icon {\n\
+ color: #00E08C;\n\
+}\n\
+/* 加粗颜色 */\n\
+.edit-theme--mintchoc .editor__inner .cn-strong {\n\
+ color: #9D8262;\n\
+}\n\
+/* 信息块颜色 */\n\
+.edit-theme--mintchoc .editor__inner .blockquote {\n\
+ color: #008D62;\n\
+}\n\
+/* 源信息、md标记符号等非关键信息的颜色 */\n\
+.edit-theme--mintchoc .editor__inner .cl,\n\
+.edit-theme--mintchoc .editor__inner .hr,\n\
+.edit-theme--mintchoc .editor__inner .link,\n\
+.edit-theme--mintchoc .editor__inner .linkref, \n\
+.edit-theme--mintchoc .editor__inner .linkdef .url {\n\
+ color: rgba(139,158,177,0.8);\n\
+}\n\
+.edit-theme--mintchoc .editor__inner .cn-toc, \n\
+.edit-theme--mintchoc .editor__inner .code,\n\
+.edit-theme--mintchoc .editor__inner .img,\n\
+.edit-theme--mintchoc .editor__inner .img-wrapper,\n\
+.edit-theme--mintchoc .editor__inner .imgref,\n\
+.edit-theme--mintchoc .editor__inner .cl-toc {\n\
+ color: rgba(139,158,177,0.8);\n\
+ background-color: rgba(0,0,0,0.33);\n\
+}\n\
+/* 代码块颜色 */\n\
+.edit-theme--mintchoc .editor__inner .cn-code {\n\
+ color: #008D62;\n\
+}\n\
+/* 链接颜色 */\n\
+.edit-theme--mintchoc .editor__inner .img .cl-underlined-text,\n\
+.edit-theme--mintchoc .editor__inner .imgref .cl-underlined-text,\n\
+.edit-theme--mintchoc .editor__inner .link .cl-underlined-text,\n\
+.edit-theme--mintchoc .editor__inner .linkref .cl-underlined-text {\n\
+ color: #00E08C;\n\
+}\n\
+/* 图片原始链接背景颜色 */\n\
+.edit-theme--mintchoc .editor__inner .img-wrapper .img {\n\
+ background-color: transparent;\n\
+}\n\
+.edit-theme--mintchoc .editor__inner .keyword {\n\
+ color: #47596b;\n\
+}\n\
+.edit-theme--mintchoc .editor__inner .email,\n\
+.edit-theme--mintchoc .editor__inner .cl-title,\n\
+.edit-theme--mintchoc .editor__inner .tag,\n\
+.edit-theme--mintchoc .editor__inner .latex,\n\
+.edit-theme--mintchoc .editor__inner .math,\n\
+.edit-theme--mintchoc .editor__inner .entity,\n\
+.edit-theme--mintchoc .editor__inner .pre [class*='language-'] {\n\
+ color: #BABABA;\n\
+}";
+ document.head.appendChild(style);
+}
+init_edit_theme_mintchoc();
\ No newline at end of file
diff --git a/static/themes/edit-theme-peacock.js b/static/themes/edit-theme-peacock.js
new file mode 100644
index 00000000..02054ec1
--- /dev/null
+++ b/static/themes/edit-theme-peacock.js
@@ -0,0 +1,72 @@
+function init_edit_theme_peacock() {
+ const style = document.createElement('style');
+ style.id = 'edit-theme-peacock';
+ style.type = 'text/css';
+ style.innerHTML = "/* 默认字体颜色、光标颜色、背景颜色*/\n\
+.edit-theme--peacock .editor__inner {\n\
+ color: #ede0ce;\n\
+ caret-color: #ede0ce;\n\
+}\n\
+.edit-theme--peacock .editor {\n\
+ background-color: #2b2a27;\n\
+}\n\
+/* 标题颜色 */\n\
+.edit-theme--peacock .editor__inner .cn-head,\n\
+.edit-theme--peacock .editor-in-page-buttons .icon {\n\
+ color: #bcd42a;\n\
+}\n\
+/* 加粗颜色 */\n\
+.edit-theme--peacock .editor__inner .cn-strong {\n\
+ color: #26A6A6;\n\
+}\n\
+/* 信息块颜色 */\n\
+.edit-theme--peacock .editor__inner .blockquote {\n\
+ color: #ff5d38;\n\
+}\n\
+/* 源信息、md标记符号等非关键信息的颜色 */\n\
+.edit-theme--peacock .editor__inner .cl,\n\
+.edit-theme--peacock .editor__inner .hr,\n\
+.edit-theme--peacock .editor__inner .link,\n\
+.edit-theme--peacock .editor__inner .linkref, \n\
+.edit-theme--peacock .editor__inner .linkdef .url {\n\
+ color: rgba(139,158,177,0.8);\n\
+}\n\
+.edit-theme--peacock .editor__inner .cn-toc, \n\
+.edit-theme--peacock .editor__inner .code,\n\
+.edit-theme--peacock .editor__inner .img,\n\
+.edit-theme--peacock .editor__inner .img-wrapper,\n\
+.edit-theme--peacock .editor__inner .imgref,\n\
+.edit-theme--peacock .editor__inner .cl-toc {\n\
+ color: rgba(139,158,177,0.8);\n\
+ background-color: rgba(0,0,0,0.33);\n\
+}\n\
+/* 代码块颜色 */\n\
+.edit-theme--peacock .editor__inner .cn-code {\n\
+ color: #FF5D38;\n\
+}\n\
+/* 链接颜色 */\n\
+.edit-theme--peacock .editor__inner .img .cl-underlined-text,\n\
+.edit-theme--peacock .editor__inner .imgref .cl-underlined-text,\n\
+.edit-theme--peacock .editor__inner .link .cl-underlined-text,\n\
+.edit-theme--peacock .editor__inner .linkref .cl-underlined-text {\n\
+ color: #bcd42a;\n\
+}\n\
+/* 图片原始链接背景颜色 */\n\
+.edit-theme--peacock .editor__inner .img-wrapper .img {\n\
+ background-color: transparent;\n\
+}\n\
+.edit-theme--peacock .editor__inner .keyword {\n\
+ color: #47596b;\n\
+}\n\
+.edit-theme--peacock .editor__inner .email,\n\
+.edit-theme--peacock .editor__inner .cl-title,\n\
+.edit-theme--peacock .editor__inner .tag,\n\
+.edit-theme--peacock .editor__inner .latex,\n\
+.edit-theme--peacock .editor__inner .math,\n\
+.edit-theme--peacock .editor__inner .entity,\n\
+.edit-theme--peacock .editor__inner .pre [class*='language-'] {\n\
+ color: #ede0ce;\n\
+}";
+ document.head.appendChild(style);
+}
+init_edit_theme_peacock();
\ No newline at end of file
diff --git a/static/themes/edit-theme-slate.js b/static/themes/edit-theme-slate.js
new file mode 100644
index 00000000..cde34d4b
--- /dev/null
+++ b/static/themes/edit-theme-slate.js
@@ -0,0 +1,72 @@
+function init_edit_theme_slate() {
+ const style = document.createElement('style');
+ style.id = 'edit-theme-slate';
+ style.type = 'text/css';
+ style.innerHTML = "/* 默认字体颜色、光标颜色、背景颜色*/\n\
+.edit-theme--slate .editor__inner {\n\
+ color: #ebebf4;\n\
+ caret-color: #ebebf4;\n\
+}\n\
+.edit-theme--slate .editor {\n\
+ background-color: #19191f;\n\
+}\n\
+/* 标题颜色 */\n\
+.edit-theme--slate .editor__inner .cn-head,\n\
+.edit-theme--slate .editor-in-page-buttons .icon {\n\
+ color: #9eb2d9;\n\
+}\n\
+/* 加粗颜色 */\n\
+.edit-theme--slate .editor__inner .cn-strong {\n\
+ color: #566981;\n\
+}\n\
+/* 信息块颜色 */\n\
+.edit-theme--slate .editor__inner .blockquote {\n\
+ color: #89A7B1;\n\
+}\n\
+/* 源信息、md标记符号等非关键信息的颜色 */\n\
+.edit-theme--slate .editor__inner .cl,\n\
+.edit-theme--slate .editor__inner .hr,\n\
+.edit-theme--slate .editor__inner .link,\n\
+.edit-theme--slate .editor__inner .linkref, \n\
+.edit-theme--slate .editor__inner .linkdef .url {\n\
+ color: rgba(139,158,177,0.8);\n\
+}\n\
+.edit-theme--slate .editor__inner .cn-toc, \n\
+.edit-theme--slate .editor__inner .code,\n\
+.edit-theme--slate .editor__inner .img,\n\
+.edit-theme--slate .editor__inner .img-wrapper,\n\
+.edit-theme--slate .editor__inner .imgref,\n\
+.edit-theme--slate .editor__inner .cl-toc {\n\
+ color: rgba(139,158,177,0.8);\n\
+ background-color: rgba(0,0,0,0.33);\n\
+}\n\
+/* 代码块颜色 */\n\
+.edit-theme--slate .editor__inner .cn-code {\n\
+ color: #89A7B1;\n\
+}\n\
+/* 链接颜色 */\n\
+.edit-theme--slate .editor__inner .img .cl-underlined-text,\n\
+.edit-theme--slate .editor__inner .imgref .cl-underlined-text,\n\
+.edit-theme--slate .editor__inner .link .cl-underlined-text,\n\
+.edit-theme--slate .editor__inner .linkref .cl-underlined-text {\n\
+ color: #9eb2d9;\n\
+}\n\
+/* 图片原始链接背景颜色 */\n\
+.edit-theme--slate .editor__inner .img-wrapper .img {\n\
+ background-color: transparent;\n\
+}\n\
+.edit-theme--slate .editor__inner .keyword {\n\
+ color: #47596b;\n\
+}\n\
+.edit-theme--slate .editor__inner .email,\n\
+.edit-theme--slate .editor__inner .cl-title,\n\
+.edit-theme--slate .editor__inner .tag,\n\
+.edit-theme--slate .editor__inner .latex,\n\
+.edit-theme--slate .editor__inner .math,\n\
+.edit-theme--slate .editor__inner .entity,\n\
+.edit-theme--slate .editor__inner .pre [class*='language-'] {\n\
+ color: #ebebf4;\n\
+}";
+ document.head.appendChild(style);
+}
+init_edit_theme_slate();
\ No newline at end of file
diff --git a/static/themes/edit-theme-solarized_light.js b/static/themes/edit-theme-solarized_light.js
new file mode 100644
index 00000000..e83fae3f
--- /dev/null
+++ b/static/themes/edit-theme-solarized_light.js
@@ -0,0 +1,72 @@
+function init_edit_theme_solarized_light() {
+ const style = document.createElement('style');
+ style.id = 'edit-theme-solarized_light';
+ style.type = 'text/css';
+ style.innerHTML = "/* 默认字体颜色、光标颜色、背景颜色*/\n\
+.edit-theme--solarized_light .editor__inner {\n\
+ color: #586E75;\n\
+ caret-color: #586E75;\n\
+}\n\
+.edit-theme--solarized_light .editor {\n\
+ background-color: #FDF6E3;\n\
+}\n\
+/* 标题颜色 */\n\
+.edit-theme--solarized_light .editor__inner .cn-head,\n\
+.edit-theme--solarized_light .editor-in-page-buttons .icon {\n\
+ color: #D33682;\n\
+}\n\
+/* 加粗颜色 */\n\
+.edit-theme--solarized_light .editor__inner .cn-strong {\n\
+ color: #859900;\n\
+}\n\
+/* 信息块颜色 */\n\
+.edit-theme--solarized_light .editor__inner .blockquote {\n\
+ color: #CB4B16;\n\
+}\n\
+/* 源信息、md标记符号等非关键信息的颜色 */\n\
+.edit-theme--solarized_light .editor__inner .cl,\n\
+.edit-theme--solarized_light .editor__inner .hr,\n\
+.edit-theme--solarized_light .editor__inner .link,\n\
+.edit-theme--solarized_light .editor__inner .linkref, \n\
+.edit-theme--solarized_light .editor__inner .linkdef .url {\n\
+ color: rgba(102,128,153,0.6);\n\
+}\n\
+.edit-theme--solarized_light .editor__inner .cn-toc, \n\
+.edit-theme--solarized_light .editor__inner .code,\n\
+.edit-theme--solarized_light .editor__inner .img,\n\
+.edit-theme--solarized_light .editor__inner .img-wrapper,\n\
+.edit-theme--solarized_light .editor__inner .imgref,\n\
+.edit-theme--solarized_light .editor__inner .cl-toc {\n\
+ color: rgba(102,128,153,0.6);\n\
+ background-color: rgba(102,128,153,0.075);\n\
+}\n\
+/* 代码块颜色 */\n\
+.edit-theme--solarized_light .editor__inner .cn-code {\n\
+ color: #268BD2;\n\
+}\n\
+/* 链接颜色 */\n\
+.edit-theme--solarized_light .editor__inner .img .cl-underlined-text,\n\
+.edit-theme--solarized_light .editor__inner .imgref .cl-underlined-text,\n\
+.edit-theme--solarized_light .editor__inner .link .cl-underlined-text,\n\
+.edit-theme--solarized_light .editor__inner .linkref .cl-underlined-text {\n\
+ color: #2AA198;\n\
+}\n\
+/* 图片原始链接背景颜色 */\n\
+.edit-theme--solarized_light .editor__inner .img-wrapper .img {\n\
+ background-color: transparent;\n\
+}\n\
+.edit-theme--solarized_light .editor__inner .keyword {\n\
+ color: #47596b;\n\
+}\n\
+.edit-theme--solarized_light .editor__inner .email,\n\
+.edit-theme--solarized_light .editor__inner .cl-title,\n\
+.edit-theme--solarized_light .editor__inner .tag,\n\
+.edit-theme--solarized_light .editor__inner .latex,\n\
+.edit-theme--solarized_light .editor__inner .math,\n\
+.edit-theme--solarized_light .editor__inner .entity,\n\
+.edit-theme--solarized_light .editor__inner .pre [class*='language-'] {\n\
+ color: #586E75;\n\
+}";
+ document.head.appendChild(style);
+}
+init_edit_theme_solarized_light();
\ No newline at end of file
diff --git a/static/themes/edit-theme-spearmint.js b/static/themes/edit-theme-spearmint.js
new file mode 100644
index 00000000..8c312ac6
--- /dev/null
+++ b/static/themes/edit-theme-spearmint.js
@@ -0,0 +1,72 @@
+function init_edit_theme_spearmint() {
+ const style = document.createElement('style');
+ style.id = 'edit-theme-spearmint';
+ style.type = 'text/css';
+ style.innerHTML = "/* 默认字体颜色、光标颜色、背景颜色*/\n\
+.edit-theme--spearmint .editor__inner {\n\
+ color: #719692;\n\
+ caret-color: #719692;\n\
+}\n\
+.edit-theme--spearmint .editor {\n\
+ background-color: #E1F0EE;\n\
+}\n\
+/* 标题颜色 */\n\
+.edit-theme--spearmint .editor__inner .cn-head,\n\
+.edit-theme--spearmint .editor-in-page-buttons .icon {\n\
+ color: #199FA8;\n\
+}\n\
+/* 加粗颜色 */\n\
+.edit-theme--spearmint .editor__inner .cn-strong {\n\
+ color: #69ADB5;\n\
+}\n\
+/* 信息块颜色 */\n\
+.edit-theme--spearmint .editor__inner .blockquote {\n\
+ color: #25808A;\n\
+}\n\
+/* 源信息、md标记符号等非关键信息的颜色 */\n\
+.edit-theme--spearmint .editor__inner .cl,\n\
+.edit-theme--spearmint .editor__inner .hr,\n\
+.edit-theme--spearmint .editor__inner .link,\n\
+.edit-theme--spearmint .editor__inner .linkref, \n\
+.edit-theme--spearmint .editor__inner .linkdef .url {\n\
+ color: rgba(102,128,153,0.6);\n\
+}\n\
+.edit-theme--spearmint .editor__inner .cn-toc, \n\
+.edit-theme--spearmint .editor__inner .code,\n\
+.edit-theme--spearmint .editor__inner .img,\n\
+.edit-theme--spearmint .editor__inner .img-wrapper,\n\
+.edit-theme--spearmint .editor__inner .imgref,\n\
+.edit-theme--spearmint .editor__inner .cl-toc {\n\
+ color: rgba(102,128,153,0.6);\n\
+ background-color: rgba(102,128,153,0.075);\n\
+}\n\
+/* 代码块颜色 */\n\
+.edit-theme--spearmint .editor__inner .cn-code {\n\
+ color: #199FA8;\n\
+}\n\
+/* 链接颜色 */\n\
+.edit-theme--spearmint .editor__inner .img .cl-underlined-text,\n\
+.edit-theme--spearmint .editor__inner .imgref .cl-underlined-text,\n\
+.edit-theme--spearmint .editor__inner .link .cl-underlined-text,\n\
+.edit-theme--spearmint .editor__inner .linkref .cl-underlined-text {\n\
+ color: #4CD7E0;\n\
+}\n\
+/* 图片原始链接背景颜色 */\n\
+.edit-theme--spearmint .editor__inner .img-wrapper .img {\n\
+ background-color: transparent;\n\
+}\n\
+.edit-theme--spearmint .editor__inner .keyword {\n\
+ color: #47596b;\n\
+}\n\
+.edit-theme--spearmint .editor__inner .email,\n\
+.edit-theme--spearmint .editor__inner .cl-title,\n\
+.edit-theme--spearmint .editor__inner .tag,\n\
+.edit-theme--spearmint .editor__inner .latex,\n\
+.edit-theme--spearmint .editor__inner .math,\n\
+.edit-theme--spearmint .editor__inner .entity,\n\
+.edit-theme--spearmint .editor__inner .pre [class*='language-'] {\n\
+ color: #719692;\n\
+}";
+ document.head.appendChild(style);
+}
+init_edit_theme_spearmint();
\ No newline at end of file