Skip to content

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

feat(web): add minimal-emerald and outline-emerald editor themes and align preference select widths

tianma-ifd6f285f95872
diff --git a/README.md b/README.md
index 75f143cc..12fb1c60 100644
--- a/README.md
+++ b/README.md
@@ -218,7 +218,9 @@ If you want to migrate notes from other platforms to EdgeEver, please refer to t
## Acknowledgements
-- The visual design of the editor themes is inspired by [gzh-design-skill](https://github.com/isjiamu/gzh-design-skill), whose themes were originally created by Jiamu (甲木) × Moyu Xiaoli (摸鱼小李). Thanks for their open-source work.
+- The visual design of the editor themes is inspired by [gzh-design-skill](https://github.com/isjiamu/gzh-design-skill).
+- The "Minimal Emerald" theme typography layout is inspired by [obsidian-minimal](https://github.com/kepano/obsidian-minimal).
+- The "Outline Emerald" theme typography layout is inspired by [Outline](https://github.com/outline/outline).
## Disclaimer
diff --git a/README.zh-CN.md b/README.zh-CN.md
index 85575883..c16d979a 100644
--- a/README.zh-CN.md
+++ b/README.zh-CN.md
@@ -232,7 +232,9 @@ Cloudflare Worker 侧执行图片处理会消耗计算/图片处理额度,因
## 致谢
-- 编辑器主题的视觉设计参考自 [gzh-design-skill](https://github.com/isjiamu/gzh-design-skill),相关主题由甲木 × 摸鱼小李原创。感谢作者的开源工作。
+- 编辑器主题的视觉设计参考自 [gzh-design-skill](https://github.com/isjiamu/gzh-design-skill)。
+- “minimal品牌绿”主题排版架构借鉴于 [obsidian-minimal](https://github.com/kepano/obsidian-minimal)。
+- “Outline 品牌绿”主题排版架构借鉴于 [Outline](https://github.com/outline/outline)。
## 免责声明
diff --git a/apps/web/src/components/ThemeProvider.tsx b/apps/web/src/components/ThemeProvider.tsx
index ff21935b..bac9dff9 100644
--- a/apps/web/src/components/ThemeProvider.tsx
+++ b/apps/web/src/components/ThemeProvider.tsx
@@ -30,6 +30,8 @@ export const EDITOR_THEME_NAMES = [
"moyu-ticket",
"olive-journal",
"mint-breeze",
+ "minimal-emerald",
+ "outline-emerald",
"custom",
] as const;
export type EditorThemeName = (typeof EDITOR_THEME_NAMES)[number];
diff --git a/apps/web/src/components/settings/PreferenceCard.tsx b/apps/web/src/components/settings/PreferenceCard.tsx
index 1dc422fd..c945f4f1 100644
--- a/apps/web/src/components/settings/PreferenceCard.tsx
+++ b/apps/web/src/components/settings/PreferenceCard.tsx
@@ -57,7 +57,7 @@ export const PreferenceCard = ({
<div className="mt-0.5 text-xs leading-4 text-slate-500">{t("settings.languageDescription")}</div>
</div>
</div>
- <div className="w-full shrink-0 sm:w-56">
+ <div className="w-full shrink-0 sm:w-80">
<Select
value={activeLocalePreference}
onValueChange={(preference) => handleLocalePreferenceChange(preference as AppLocalePreference)}
@@ -85,7 +85,7 @@ export const PreferenceCard = ({
<div className="mt-0.5 text-xs leading-4 text-slate-500">{t("settings.editorThemeDescription")}</div>
</div>
</div>
- <div className="flex w-full shrink-0 flex-col gap-2 sm:w-56 sm:flex-row">
+ <div className="flex w-full shrink-0 flex-col gap-2 sm:w-80 sm:flex-row">
<Select value={editorTheme} onValueChange={(value) => setEditorTheme(value as typeof editorTheme)}>
<SelectTrigger aria-label={t("settings.editorThemeTitle")} className="h-9 w-full min-w-0 flex-1 bg-white">
<SelectValue />
@@ -112,7 +112,7 @@ export const PreferenceCard = ({
<div className="mt-0.5 text-xs leading-4 text-slate-500">{t("settings.mermaidThemeDescription")}</div>
</div>
</div>
- <div className="w-full shrink-0 sm:w-56">
+ <div className="w-full shrink-0 sm:w-80">
<Select value={mermaidTheme} onValueChange={(value) => setMermaidTheme(value as typeof mermaidTheme)}>
<SelectTrigger aria-label={t("settings.mermaidThemeTitle")} className="h-9 bg-white">
<SelectValue />
diff --git a/apps/web/src/lib/wechat-copy.ts b/apps/web/src/lib/wechat-copy.ts
index 35df4d52..5be8452f 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 === "red-white" ? "#dc2626" : editorTheme === "olive-journal" ? "#ed7b2f" : editorTheme === "graphite-minimal" ? "#52525b" : editorTheme === "mint-breeze" ? "#00a86b" : "#059669";
+ const accent = editorTheme === "red-white" ? "#dc2626" : editorTheme === "olive-journal" ? "#ed7b2f" : editorTheme === "graphite-minimal" ? "#52525b" : editorTheme === "mint-breeze" ? "#00a86b" : editorTheme === "minimal-emerald" ? "#059669" : editorTheme === "outline-emerald" ? "#059669" : "#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 bb4d9e6b..d1f9268e 100644
--- a/apps/web/src/styles/editor-themes/index.css
+++ b/apps/web/src/styles/editor-themes/index.css
@@ -6,3 +6,11 @@
@import "./moyu-ticket.css";
@import "./olive-journal.css";
@import "./mint-breeze.css";
+@import "./minimal-emerald.css";
+@import "./outline-emerald.css";
+
+
+
+
+
+
diff --git a/apps/web/src/styles/editor-themes/minimal-emerald.css b/apps/web/src/styles/editor-themes/minimal-emerald.css
new file mode 100644
index 00000000..fe4805ba
--- /dev/null
+++ b/apps/web/src/styles/editor-themes/minimal-emerald.css
@@ -0,0 +1,134 @@
+/* minimal-emerald editor theme (Minimal typography + neutral backgrounds + brand green accent lines) */
+
+.edgeever-editor[data-editor-theme="minimal-emerald"]:not([data-editor-theme="default"]) {
+ --editor-theme-bg: #ffffff;
+ --editor-theme-text: #262626;
+ --editor-theme-muted: #737373;
+ --editor-theme-heading: #171717;
+ --editor-theme-accent: #059669;
+ --editor-theme-soft: #f8fafc;
+ --editor-theme-border: #e2e8f0;
+ --editor-theme-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
+ --editor-theme-radius: 6px;
+}
+
+.edgeever-editor[data-editor-theme="minimal-emerald"]:not([data-editor-theme="default"]) .ProseMirror {
+ font-size: 1rem;
+ line-height: 1.75;
+ letter-spacing: -0.003em;
+}
+
+.edgeever-editor[data-editor-theme="minimal-emerald"]:not([data-editor-theme="default"]) .ProseMirror p {
+ margin: 0;
+ padding: 0.4rem 0;
+ line-height: 1.75;
+ color: var(--editor-theme-text);
+}
+
+.edgeever-editor[data-editor-theme="minimal-emerald"]:not([data-editor-theme="default"]) .ProseMirror h1,
+.edgeever-editor[data-editor-theme="minimal-emerald"]:not([data-editor-theme="default"]) .ProseMirror h2,
+.edgeever-editor[data-editor-theme="minimal-emerald"]:not([data-editor-theme="default"]) .ProseMirror h3,
+.edgeever-editor[data-editor-theme="minimal-emerald"]:not([data-editor-theme="default"]) .ProseMirror h4 {
+ color: var(--editor-theme-heading);
+ font-family: var(--editor-theme-font);
+ font-weight: 600;
+ margin: 1.5rem 0 0.75rem;
+ line-height: 1.3;
+}
+
+.edgeever-editor[data-editor-theme="minimal-emerald"]:not([data-editor-theme="default"]) .ProseMirror h1 {
+ font-size: 1.85rem;
+ font-weight: 700;
+ letter-spacing: -0.025em;
+ border-bottom: 0;
+ padding-bottom: 0;
+}
+
+.edgeever-editor[data-editor-theme="minimal-emerald"]:not([data-editor-theme="default"]) .ProseMirror h2 {
+ font-size: 1.45rem;
+ letter-spacing: -0.015em;
+ border-left: 0;
+ border-bottom: 0;
+ padding-left: 0;
+}
+
+.edgeever-editor[data-editor-theme="minimal-emerald"]:not([data-editor-theme="default"]) .ProseMirror h3 {
+ font-size: 1.2rem;
+ letter-spacing: -0.01em;
+ border: 0;
+ padding-left: 0;
+}
+
+.edgeever-editor[data-editor-theme="minimal-emerald"]:not([data-editor-theme="default"]) .ProseMirror strong {
+ color: #171717;
+ font-weight: 600;
+}
+
+.edgeever-editor[data-editor-theme="minimal-emerald"]:not([data-editor-theme="default"]) .ProseMirror a {
+ color: var(--editor-theme-accent);
+ text-decoration: underline;
+ text-decoration-color: rgba(5, 150, 105, 0.4);
+ text-underline-offset: 2px;
+}
+
+.edgeever-editor[data-editor-theme="minimal-emerald"]:not([data-editor-theme="default"]) .ProseMirror blockquote {
+ margin: 1rem 0;
+ border-left: 3px solid var(--editor-theme-accent);
+ border-radius: 0;
+ background: var(--editor-theme-soft);
+ color: #374151;
+ padding: 0.6rem 1rem;
+}
+
+.edgeever-editor[data-editor-theme="minimal-emerald"]:not([data-editor-theme="default"]) .ProseMirror ul,
+.edgeever-editor[data-editor-theme="minimal-emerald"]:not([data-editor-theme="default"]) .ProseMirror ol {
+ margin: 0.5rem 0;
+ padding-left: 1.4rem;
+}
+
+.edgeever-editor[data-editor-theme="minimal-emerald"]:not([data-editor-theme="default"]) .ProseMirror li {
+ margin: 0.2rem 0;
+ line-height: 1.7;
+}
+
+.edgeever-editor[data-editor-theme="minimal-emerald"]:not([data-editor-theme="default"]) .ProseMirror li::marker {
+ color: var(--editor-theme-accent);
+ font-weight: 600;
+}
+
+.edgeever-editor[data-editor-theme="minimal-emerald"]:not([data-editor-theme="default"]) .ProseMirror code {
+ border: 1px solid #e2e8f0;
+ border-radius: 4px;
+ background: #f1f5f9;
+ color: #059669;
+ 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="minimal-emerald"]:not([data-editor-theme="default"]) .ProseMirror pre {
+ border: 1px solid var(--editor-theme-border);
+ border-radius: 6px;
+ background: #f8fafc;
+ color: #1e293b;
+ padding: 0.75rem 1rem;
+}
+
+.edgeever-editor[data-editor-theme="minimal-emerald"]:not([data-editor-theme="default"]) .ProseMirror hr {
+ height: 1px;
+ border: 0;
+ background: #e2e8f0;
+ margin: 1.75rem 0;
+}
+
+.edgeever-editor[data-editor-theme="minimal-emerald"]:not([data-editor-theme="default"]) .ProseMirror th {
+ background: #f8fafc;
+ color: var(--editor-theme-heading);
+ font-weight: 600;
+}
+
+.edgeever-editor[data-editor-theme="minimal-emerald"]:not([data-editor-theme="default"]) .ProseMirror .edgeever-theme-block {
+ --theme-block-bg: #f8fafc;
+ --theme-block-border: #e2e8f0;
+ border-radius: 6px;
+}
diff --git a/apps/web/src/styles/editor-themes/outline-emerald.css b/apps/web/src/styles/editor-themes/outline-emerald.css
new file mode 100644
index 00000000..79959ea3
--- /dev/null
+++ b/apps/web/src/styles/editor-themes/outline-emerald.css
@@ -0,0 +1,136 @@
+/* outline-emerald editor theme (Outline typography & dark code block + EdgeEver brand green accent) */
+
+.edgeever-editor[data-editor-theme="outline-emerald"]:not([data-editor-theme="default"]) {
+ --editor-theme-bg: #ffffff;
+ --editor-theme-text: #111729;
+ --editor-theme-muted: #4e5873;
+ --editor-theme-heading: #0f172a;
+ --editor-theme-accent: #059669;
+ --editor-theme-soft: #f8fafc;
+ --editor-theme-border: #e2e8f0;
+ --editor-theme-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", sans-serif;
+ --editor-theme-radius: 8px;
+}
+
+.edgeever-editor[data-editor-theme="outline-emerald"]:not([data-editor-theme="default"]) .ProseMirror {
+ font-size: 1rem;
+ line-height: 1.7;
+ letter-spacing: -0.005em;
+}
+
+.edgeever-editor[data-editor-theme="outline-emerald"]:not([data-editor-theme="default"]) .ProseMirror p {
+ margin: 0;
+ padding: 0.45rem 0;
+ line-height: 1.7;
+ color: var(--editor-theme-text);
+}
+
+.edgeever-editor[data-editor-theme="outline-emerald"]:not([data-editor-theme="default"]) .ProseMirror h1,
+.edgeever-editor[data-editor-theme="outline-emerald"]:not([data-editor-theme="default"]) .ProseMirror h2,
+.edgeever-editor[data-editor-theme="outline-emerald"]:not([data-editor-theme="default"]) .ProseMirror h3,
+.edgeever-editor[data-editor-theme="outline-emerald"]:not([data-editor-theme="default"]) .ProseMirror h4 {
+ color: var(--editor-theme-heading);
+ font-family: var(--editor-theme-font);
+ font-weight: 600;
+ margin: 1.6rem 0 0.65rem;
+ line-height: 1.3;
+}
+
+.edgeever-editor[data-editor-theme="outline-emerald"]:not([data-editor-theme="default"]) .ProseMirror h1 {
+ font-size: 1.8rem;
+ font-weight: 700;
+ letter-spacing: -0.02em;
+ border-bottom: 0;
+ padding-bottom: 0;
+}
+
+.edgeever-editor[data-editor-theme="outline-emerald"]:not([data-editor-theme="default"]) .ProseMirror h2 {
+ font-size: 1.4rem;
+ font-weight: 600;
+ letter-spacing: -0.015em;
+ border-left: 0;
+ border-bottom: 0;
+ padding-left: 0;
+}
+
+.edgeever-editor[data-editor-theme="outline-emerald"]:not([data-editor-theme="default"]) .ProseMirror h3 {
+ font-size: 1.15rem;
+ font-weight: 600;
+ letter-spacing: -0.01em;
+ border: 0;
+ padding-left: 0;
+}
+
+.edgeever-editor[data-editor-theme="outline-emerald"]:not([data-editor-theme="default"]) .ProseMirror strong {
+ color: #0f172a;
+ font-weight: 600;
+}
+
+.edgeever-editor[data-editor-theme="outline-emerald"]:not([data-editor-theme="default"]) .ProseMirror a {
+ color: var(--editor-theme-accent);
+ text-decoration: underline;
+ text-decoration-color: rgba(5, 150, 105, 0.4);
+ text-underline-offset: 2px;
+}
+
+.edgeever-editor[data-editor-theme="outline-emerald"]:not([data-editor-theme="default"]) .ProseMirror blockquote {
+ margin: 1rem 0;
+ border-left: 3px solid #cbd5e1;
+ border-radius: 0;
+ background: var(--editor-theme-soft);
+ color: #475569;
+ padding: 0.6rem 1rem;
+}
+
+.edgeever-editor[data-editor-theme="outline-emerald"]:not([data-editor-theme="default"]) .ProseMirror ul,
+.edgeever-editor[data-editor-theme="outline-emerald"]:not([data-editor-theme="default"]) .ProseMirror ol {
+ margin: 0.5rem 0;
+ padding-left: 1.4rem;
+}
+
+.edgeever-editor[data-editor-theme="outline-emerald"]:not([data-editor-theme="default"]) .ProseMirror li {
+ margin: 0.2rem 0;
+ line-height: 1.65;
+}
+
+.edgeever-editor[data-editor-theme="outline-emerald"]:not([data-editor-theme="default"]) .ProseMirror li::marker {
+ color: var(--editor-theme-accent);
+ font-weight: 600;
+}
+
+.edgeever-editor[data-editor-theme="outline-emerald"]:not([data-editor-theme="default"]) .ProseMirror code {
+ border: 1px solid #e2e8f0;
+ border-radius: 4px;
+ background: #f1f5f9;
+ color: #0f172a;
+ 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="outline-emerald"]:not([data-editor-theme="default"]) .ProseMirror pre {
+ border: 1px solid #cbd5e1;
+ border-radius: 8px;
+ background: #0f172a;
+ color: #f8fafc;
+ padding: 0.85rem 1.1rem;
+}
+
+.edgeever-editor[data-editor-theme="outline-emerald"]:not([data-editor-theme="default"]) .ProseMirror hr {
+ height: 1px;
+ border: 0;
+ background: #e2e8f0;
+ margin: 1.75rem 0;
+}
+
+.edgeever-editor[data-editor-theme="outline-emerald"]:not([data-editor-theme="default"]) .ProseMirror th {
+ background: #f8fafc;
+ color: var(--editor-theme-heading);
+ font-weight: 600;
+}
+
+.edgeever-editor[data-editor-theme="outline-emerald"]:not([data-editor-theme="default"]) .ProseMirror .edgeever-theme-block {
+ --theme-block-bg: #f8fafc;
+ --theme-block-border: #e2e8f0;
+ border-radius: 8px;
+}
diff --git a/packages/shared/src/i18n/en-US.ts b/packages/shared/src/i18n/en-US.ts
index 9a2cb6bd..aacfb3ad 100644
--- a/packages/shared/src/i18n/en-US.ts
+++ b/packages/shared/src/i18n/en-US.ts
@@ -159,6 +159,8 @@ export const enUS = {
"moyu-ticket": "Moyu Ticket",
"olive-journal": "Olive Journal",
"mint-breeze": "Mint Breeze",
+ "minimal-emerald": "Minimal Emerald",
+ "outline-emerald": "Outline Emerald",
custom: "Custom",
},
customEditorTheme: {
diff --git a/packages/shared/src/i18n/zh-CN.ts b/packages/shared/src/i18n/zh-CN.ts
index 4d23127a..4e38fcdb 100644
--- a/packages/shared/src/i18n/zh-CN.ts
+++ b/packages/shared/src/i18n/zh-CN.ts
@@ -159,6 +159,8 @@ export const zhCN = {
"moyu-ticket": "摸鱼票据风",
"olive-journal": "橄榄手记",
"mint-breeze": "薄荷青",
+ "minimal-emerald": "minimal品牌绿",
+ "outline-emerald": "Outline 品牌绿",
custom: "自定义",
},
customEditorTheme: {