Skip to content

AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.

refactor(web): remove mint-breeze theme

tianma-ifc045c568310b
diff --git a/apps/web/src/components/ThemeProvider.tsx b/apps/web/src/components/ThemeProvider.tsx
index b58a22c3..07479263 100644
--- a/apps/web/src/components/ThemeProvider.tsx
+++ b/apps/web/src/components/ThemeProvider.tsx
@@ -23,7 +23,6 @@ export type MermaidThemeName = (typeof MERMAID_THEME_NAMES)[number];
export const EDITOR_THEME_NAMES = [
"default",
- "mint-breeze",
"minimal-emerald",
"outline-emerald",
"custom",
@@ -98,8 +97,7 @@ export const getStoredMermaidTheme = (): MermaidThemeName => {
export const getStoredEditorTheme = (): EditorThemeName => {
if (typeof window === "undefined") return "default";
const stored = window.localStorage.getItem(EDITOR_THEME_STORAGE_KEY);
- if (stored === "mdnice-nenqing") return "mint-breeze";
- return EDITOR_THEME_NAMES.includes(stored as EditorThemeName) ? stored as EditorThemeName : "default";
+ return EDITOR_THEME_NAMES.includes(stored as EditorThemeName) ? (stored as EditorThemeName) : "default";
};
const isHexColor = (value: unknown): value is string => typeof value === "string" && /^#[0-9a-f]{6}$/i.test(value);
diff --git a/apps/web/src/lib/wechat-copy.ts b/apps/web/src/lib/wechat-copy.ts
index a38d48bc..c6d5ca28 100644
--- a/apps/web/src/lib/wechat-copy.ts
+++ b/apps/web/src/lib/wechat-copy.ts
@@ -62,7 +62,7 @@ const applyInlineStyles = (root: HTMLElement, editorTheme?: string) => {
root.querySelectorAll<HTMLElement>("[data-edgeever-theme-block]").forEach((block) => {
const kind = block.getAttribute("data-theme-block-kind") || "intro";
const themeStyles = THEME_BLOCK_STYLES[kind] || THEME_BLOCK_STYLES.intro;
- const accent = editorTheme === "mint-breeze" ? "#00a86b" : "#059669";
+ const accent = "#059669";
block.style.cssText = `${themeStyles.block} border-left-color: ${accent}; ${block.style.cssText}`;
const label = document.createElement("p");
diff --git a/apps/web/src/styles/editor-themes/index.css b/apps/web/src/styles/editor-themes/index.css
index 549cbb42..4ac8950d 100644
--- a/apps/web/src/styles/editor-themes/index.css
+++ b/apps/web/src/styles/editor-themes/index.css
@@ -1,4 +1,3 @@
@import "./base.css";
-@import "./mint-breeze.css";
@import "./minimal-emerald.css";
@import "./outline-emerald.css";
diff --git a/apps/web/src/styles/editor-themes/mint-breeze.css b/apps/web/src/styles/editor-themes/mint-breeze.css
deleted file mode 100644
index 8905af4f..00000000
--- a/apps/web/src/styles/editor-themes/mint-breeze.css
+++ /dev/null
@@ -1,125 +0,0 @@
-/* mint-breeze editor theme */
-
-.edgeever-editor[data-editor-theme="mint-breeze"]:not([data-editor-theme="default"]) {
-
- --editor-theme-bg: #ffffff;
- --editor-theme-text: #36544a;
- --editor-theme-muted: #668277;
- --editor-theme-heading: #12372a;
- --editor-theme-accent: #00a86b;
- --editor-theme-soft: #effaf4;
- --editor-theme-border: #a7dcc8;
- --editor-theme-font: Optima, "Microsoft YaHei", "PingFang SC", serif;
-}
-.edgeever-editor[data-editor-theme="mint-breeze"]:not([data-editor-theme="default"]) .ProseMirror {
-
- font-size: 1rem;
- line-height: 1.8;
-}
-
-.edgeever-editor[data-editor-theme="mint-breeze"]:not([data-editor-theme="default"]) .ProseMirror p {
-
- margin: 0;
- padding: 0.5rem 0;
- line-height: 1.8;
-}
-
-.edgeever-editor[data-editor-theme="mint-breeze"]:not([data-editor-theme="default"]) .ProseMirror h1,
-.edgeever-editor[data-editor-theme="mint-breeze"]:not([data-editor-theme="default"]) .ProseMirror h2,
-.edgeever-editor[data-editor-theme="mint-breeze"]:not([data-editor-theme="default"]) .ProseMirror h3 {
-
- color: var(--editor-theme-heading);
- font-family: var(--editor-theme-font);
- font-weight: 700;
- margin: 1.875rem 0 0.9375rem;
-}
-
-.edgeever-editor[data-editor-theme="mint-breeze"]:not([data-editor-theme="default"]) .ProseMirror h1 {
-
- font-size: 1.75rem;
- line-height: 1.5;
- border-bottom: 2px solid #00a86b;
- padding-bottom: 0;
-}
-
-.edgeever-editor[data-editor-theme="mint-breeze"]:not([data-editor-theme="default"]) .ProseMirror h2 {
-
- font-size: 1.5rem;
- line-height: 1.5;
- border-left: 0;
- border-bottom: 2px solid #00a86b;
- padding-left: 0;
-}
-
-.edgeever-editor[data-editor-theme="mint-breeze"]:not([data-editor-theme="default"]) .ProseMirror h3 {
-
- font-size: 1.17rem;
- line-height: 1.3;
- border: 0;
- padding-left: 0;
-}
-
-.edgeever-editor[data-editor-theme="mint-breeze"]:not([data-editor-theme="default"]) .ProseMirror strong,
-.edgeever-editor[data-editor-theme="mint-breeze"]:not([data-editor-theme="default"]) .ProseMirror a {
-
- color: var(--editor-theme-accent);
-}
-
-.edgeever-editor[data-editor-theme="mint-breeze"]:not([data-editor-theme="default"]) .ProseMirror blockquote {
-
- margin: 1.25rem 0;
- border-left: 0;
- border-radius: 0;
- background: var(--editor-theme-soft);
- color: var(--editor-theme-text);
- padding: 0.625rem 0.625rem 0.625rem 1.25rem;
-}
-
-.edgeever-editor[data-editor-theme="mint-breeze"]:not([data-editor-theme="default"]) .ProseMirror ul,
-.edgeever-editor[data-editor-theme="mint-breeze"]:not([data-editor-theme="default"]) .ProseMirror ol {
-
- margin: 0.5rem 0;
- padding-left: 1.5625rem;
-}
-
-.edgeever-editor[data-editor-theme="mint-breeze"]:not([data-editor-theme="default"]) .ProseMirror li {
-
- margin: 0;
- line-height: 1.5;
-}
-
-.edgeever-editor[data-editor-theme="mint-breeze"]:not([data-editor-theme="default"]) .ProseMirror li::marker {
-
- color: var(--editor-theme-accent);
- font-weight: 700;
-}
-
-.edgeever-editor[data-editor-theme="mint-breeze"]:not([data-editor-theme="default"]) .ProseMirror code {
-
- border: 0;
- border-radius: 2px;
- background: #eef6f1;
- color: var(--editor-theme-accent);
- font-family: "Operator Mono", Consolas, Monaco, Menlo, monospace;
- font-size: 0.875rem;
- padding: 0.125rem 0.25rem;
-}
-
-.edgeever-editor[data-editor-theme="mint-breeze"]:not([data-editor-theme="default"]) .ProseMirror pre {
-
- border: 0;
- border-radius: 0.3125rem;
- background: #f1f8f4;
- color: #36544a;
-}
-
-.edgeever-editor[data-editor-theme="mint-breeze"]:not([data-editor-theme="default"]) .ProseMirror hr {
-
- border-color: #a7dcc8;
-}
-
-.edgeever-editor[data-editor-theme="mint-breeze"]:not([data-editor-theme="default"]) .ProseMirror th {
-
- background: rgb(0 168 107 / 12%);
- color: var(--editor-theme-heading);
-}
diff --git a/packages/shared/src/i18n/en-US.ts b/packages/shared/src/i18n/en-US.ts
index a9d31b90..dc7edf8c 100644
--- a/packages/shared/src/i18n/en-US.ts
+++ b/packages/shared/src/i18n/en-US.ts
@@ -152,7 +152,6 @@ export const enUS = {
editorThemeDescription: "Choose a writing style for the note editor. Saved in this browser.",
editorThemes: {
default: "System default",
- "mint-breeze": "Mint Breeze",
"minimal-emerald": "Minimal Emerald",
"outline-emerald": "Outline Emerald",
custom: "Custom",
diff --git a/packages/shared/src/i18n/zh-CN.ts b/packages/shared/src/i18n/zh-CN.ts
index 60a99d35..1544d798 100644
--- a/packages/shared/src/i18n/zh-CN.ts
+++ b/packages/shared/src/i18n/zh-CN.ts
@@ -152,7 +152,6 @@ export const zhCN = {
editorThemeDescription: "选择正文编辑区的排版风格,偏好会保存在当前浏览器中。",
editorThemes: {
default: "系统默认",
- "mint-breeze": "薄荷青",
"minimal-emerald": "minimal品牌绿",
"outline-emerald": "Outline 品牌绿",
custom: "自定义",