AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.
HTML ai-agentcloudflarecloudflare-d1cloudflare-r2cloudflare-workersdockerelectronevernoteevernote-alternativeknowledge-basemcpnote-takingobsidian-alternativeoffline-firstpersonal-knowledge-basepwaself-hostedsqlitetiptapweb-clipper
feat(web): add Modern Mint editor theme
tianma-if2ec3d50ba762
diff --git a/apps/web/src/components/EditorPane.tsx b/apps/web/src/components/EditorPane.tsxindex 41f405be..e2a523ef 100644--- a/apps/web/src/components/EditorPane.tsx+++ b/apps/web/src/components/EditorPane.tsx@@ -2749,7 +2749,8 @@ const RichEditorPane = ({editorTheme === "default" ||editorTheme === "minimal-emerald" ||editorTheme === "outline-emerald" ||- editorTheme === "wechat-green"+ editorTheme === "wechat-green" ||+ editorTheme === "modern-mint"? editorTheme: "custom"}@@ -2761,7 +2762,8 @@ const RichEditorPane = ({...(editorTheme !== "default" &&editorTheme !== "minimal-emerald" &&editorTheme !== "outline-emerald" &&- editorTheme !== "wechat-green"+ editorTheme !== "wechat-green" &&+ editorTheme !== "modern-mint"? {"--editor-theme-bg": (resolvedTheme === "dark" ? customEditorTheme.dark : customEditorTheme.light).background,"--editor-theme-text": (resolvedTheme === "dark" ? customEditorTheme.dark : customEditorTheme.light).text,@@ -2781,6 +2783,7 @@ const RichEditorPane = ({editorTheme !== "minimal-emerald" &&editorTheme !== "outline-emerald" &&editorTheme !== "wechat-green" &&+ editorTheme !== "modern-mint" &&customEditorTheme.customCss && (<styledata-theme-custom-cssdiff --git a/apps/web/src/components/ThemeProvider.tsx b/apps/web/src/components/ThemeProvider.tsxindex e7ce3343..65fc21f7 100644--- a/apps/web/src/components/ThemeProvider.tsx+++ b/apps/web/src/components/ThemeProvider.tsx@@ -57,6 +57,7 @@ export const EDITOR_THEME_NAMES = ["minimal-emerald","outline-emerald","wechat-green",+ "modern-mint","custom",] as const;export type EditorThemeName = string;diff --git a/apps/web/src/components/settings/PreferenceCard.tsx b/apps/web/src/components/settings/PreferenceCard.tsxindex b7cbc7ea..5d3539ac 100644--- a/apps/web/src/components/settings/PreferenceCard.tsx+++ b/apps/web/src/components/settings/PreferenceCard.tsx@@ -63,7 +63,7 @@ export const PreferenceCard = ({}, []);const activeCustom = customEditorThemes.find((t) => t.id === editorTheme);- const isPreset = editorTheme === "default" || editorTheme === "minimal-emerald" || editorTheme === "outline-emerald" || editorTheme === "wechat-green";+ const isPreset = editorTheme === "default" || editorTheme === "minimal-emerald" || editorTheme === "outline-emerald" || editorTheme === "wechat-green" || editorTheme === "modern-mint";const handleEditClick = () => {if (activeCustom) {@@ -179,6 +179,7 @@ export const PreferenceCard = ({<SelectItem value="minimal-emerald">{t("settings.editorThemes.minimal-emerald")}</SelectItem><SelectItem value="outline-emerald">{t("settings.editorThemes.outline-emerald")}</SelectItem><SelectItem value="wechat-green">{t("settings.editorThemes.wechat-green")}</SelectItem>+ <SelectItem value="modern-mint">{t("settings.editorThemes.modern-mint")}</SelectItem>{!isMobile && (<>{customEditorThemes.length > 0 && <div className="my-1 border-t border-slate-100" />}diff --git a/apps/web/src/styles/editor-themes/index.css b/apps/web/src/styles/editor-themes/index.cssindex 98809012..c8cf1d08 100644--- a/apps/web/src/styles/editor-themes/index.css+++ b/apps/web/src/styles/editor-themes/index.css@@ -2,4 +2,6 @@@import "./minimal-emerald.css";@import "./outline-emerald.css";@import "./wechat-green.css";+@import "./modern-mint.css";+diff --git a/apps/web/src/styles/editor-themes/modern-mint.css b/apps/web/src/styles/editor-themes/modern-mint.cssnew file mode 100644index 00000000..a9f715b8--- /dev/null+++ b/apps/web/src/styles/editor-themes/modern-mint.css@@ -0,0 +1,160 @@+/* modern-mint editor theme (Clean info-focused layout with a beautiful mint green accent) */++.edgeever-editor[data-editor-theme="modern-mint"]:not([data-editor-theme="default"]) {+ --editor-theme-bg: #ffffff;+ --editor-theme-text: #4a4a4a;+ --editor-theme-muted: #7a7a7a;+ --editor-theme-heading: #1c1c1c;+ --editor-theme-accent: #00b38a;+ --editor-theme-soft: #f2faf8;+ --editor-theme-border: #d2ede7;+ --editor-theme-code-bg: #f5f6f7;+ --editor-theme-code-text: #009673;+ --editor-theme-font: Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;+ --editor-theme-radius: 6px;+}++:root.dark .edgeever-editor[data-editor-theme="modern-mint"]:not([data-editor-theme="default"]) {+ --editor-theme-bg: #111a18;+ --editor-theme-text: #cbd5e1;+ --editor-theme-muted: #8fa39f;+ --editor-theme-heading: #f1f5f9;+ --editor-theme-accent: #14b8a6;+ --editor-theme-soft: #182b26;+ --editor-theme-border: #24423a;+ --editor-theme-code-bg: #1e293b;+ --editor-theme-code-text: #2ee5b5;+}++.edgeever-editor[data-editor-theme="modern-mint"]:not([data-editor-theme="default"]) .ProseMirror {+ font-size: 1rem;+ line-height: 1.75;+ letter-spacing: -0.003em;+}++.edgeever-editor[data-editor-theme="modern-mint"]:not([data-editor-theme="default"]) .ProseMirror p {+ margin: 0;+ padding: 0.45rem 0;+ line-height: 1.75;+ color: var(--editor-theme-text);+}++.edgeever-editor[data-editor-theme="modern-mint"]:not([data-editor-theme="default"]) .ProseMirror h1,+.edgeever-editor[data-editor-theme="modern-mint"]:not([data-editor-theme="default"]) .ProseMirror h2,+.edgeever-editor[data-editor-theme="modern-mint"]:not([data-editor-theme="default"]) .ProseMirror h3,+.edgeever-editor[data-editor-theme="modern-mint"]:not([data-editor-theme="default"]) .ProseMirror h4 {+ color: var(--editor-theme-heading);+ font-family: var(--editor-theme-font);+ margin: 1.8rem 0 0.8rem;+ line-height: 1.35;+}++.edgeever-editor[data-editor-theme="modern-mint"]:not([data-editor-theme="default"]) .ProseMirror h1 {+ font-size: 1.85rem;+ font-weight: 700;+ letter-spacing: -0.020em;+ border-bottom: 0;+ padding-bottom: 0;+}++.edgeever-editor[data-editor-theme="modern-mint"]:not([data-editor-theme="default"]) .ProseMirror h2 {+ font-size: 1.50rem;+ font-weight: 600;+ color: var(--editor-theme-accent);+ letter-spacing: -0.015em;+ border-bottom: 1px solid var(--editor-theme-border);+ padding-bottom: 6px;+}++.edgeever-editor[data-editor-theme="modern-mint"]:not([data-editor-theme="default"]) .ProseMirror h3 {+ font-size: 1.20rem;+ font-weight: 600;+ letter-spacing: -0.010em;+ border: 0;+ padding-left: 0;+}++.edgeever-editor[data-editor-theme="modern-mint"]:not([data-editor-theme="default"]) .ProseMirror strong {+ color: var(--editor-theme-heading);+ font-weight: 700;+}++.edgeever-editor[data-editor-theme="modern-mint"]:not([data-editor-theme="default"]) .ProseMirror a {+ color: var(--editor-theme-accent);+ text-decoration: underline;+ text-decoration-color: rgba(0, 179, 138, 0.4);+ text-underline-offset: 2px;+}++:root.dark .edgeever-editor[data-editor-theme="modern-mint"]:not([data-editor-theme="default"]) .ProseMirror a {+ text-decoration-color: rgba(20, 184, 166, 0.4);+}++.edgeever-editor[data-editor-theme="modern-mint"]:not([data-editor-theme="default"]) .ProseMirror blockquote {+ margin: 1.5rem 0;+ border-left: 4px solid var(--editor-theme-accent);+ border-radius: 4px;+ background: var(--editor-theme-soft);+ color: var(--editor-theme-muted);+ padding: 1rem 1.25rem;+}++.edgeever-editor[data-editor-theme="modern-mint"]:not([data-editor-theme="default"]) .ProseMirror ul,+.edgeever-editor[data-editor-theme="modern-mint"]:not([data-editor-theme="default"]) .ProseMirror ol {+ margin: 1.0rem 0;+ padding-left: 1.75rem;+}++.edgeever-editor[data-editor-theme="modern-mint"]:not([data-editor-theme="default"]) .ProseMirror li {+ margin: 0.5rem 0;+ line-height: 1.75;+}++.edgeever-editor[data-editor-theme="modern-mint"]:not([data-editor-theme="default"]) .ProseMirror li::marker {+ color: var(--editor-theme-accent);+ font-weight: 600;+}++.edgeever-editor[data-editor-theme="modern-mint"]:not([data-editor-theme="default"]) .ProseMirror code {+ border: 1px solid var(--editor-theme-border);+ border-radius: 4px;+ background: var(--editor-theme-code-bg);+ color: var(--editor-theme-code-text);+ font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;+ font-size: 0.875rem;+ padding: 0.15rem 0.35rem;+}++.edgeever-editor[data-editor-theme="modern-mint"]:not([data-editor-theme="default"]) .ProseMirror pre {+ border: 1px solid var(--editor-theme-border);+ border-radius: 6px;+ background: var(--editor-theme-code-bg);+ color: var(--editor-theme-text);+ padding: 0.85rem 1.1rem;+}++.edgeever-editor[data-editor-theme="modern-mint"]:not([data-editor-theme="default"]) .ProseMirror hr {+ height: 1px;+ border: 0;+ background: var(--editor-theme-border);+ margin: 2.0rem 0;+}++.edgeever-editor[data-editor-theme="modern-mint"]:not([data-editor-theme="default"]) .ProseMirror th {+ background: var(--editor-theme-soft);+ color: var(--editor-theme-heading);+ font-weight: 600;+ border: 1px solid var(--editor-theme-border);+ padding: 12px 16px;+}++.edgeever-editor[data-editor-theme="modern-mint"]:not([data-editor-theme="default"]) .ProseMirror td {+ border: 1px solid var(--editor-theme-border);+ padding: 12px 16px;+}++.edgeever-editor[data-editor-theme="modern-mint"]:not([data-editor-theme="default"]) .ProseMirror .edgeever-theme-block {+ --theme-block-bg: var(--editor-theme-soft);+ --theme-block-border: var(--editor-theme-border);+ border-radius: 6px;+}diff --git a/packages/shared/src/i18n/en-US.ts b/packages/shared/src/i18n/en-US.tsindex 95a43965..7e640bae 100644--- a/packages/shared/src/i18n/en-US.ts+++ b/packages/shared/src/i18n/en-US.ts@@ -186,6 +186,7 @@ export const enUS = {"minimal-emerald": "Minimal Emerald","outline-emerald": "Outline Emerald","wechat-green": "WeChat Classic Green",+ "modern-mint": "Modern Mint",custom: "Custom",},customEditorTheme: {diff --git a/packages/shared/src/i18n/zh-CN.ts b/packages/shared/src/i18n/zh-CN.tsindex fcff92a9..a49de2ea 100644--- a/packages/shared/src/i18n/zh-CN.ts+++ b/packages/shared/src/i18n/zh-CN.ts@@ -186,6 +186,7 @@ export const zhCN = {"minimal-emerald": "minimal品牌绿","outline-emerald": "Outline 品牌绿","wechat-green": "微信经典绿",+ "modern-mint": "极客薄荷绿",custom: "自定义",},customEditorTheme: {