Skip to content

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

style(web): refine workspace palette and editor typography

tianma-if817a3b5a6ae1
diff --git a/apps/web/index.html b/apps/web/index.html
index 127caf54..8c30dff8 100644
--- a/apps/web/index.html
+++ b/apps/web/index.html
@@ -6,7 +6,7 @@
name="viewport"
content="width=device-width, initial-scale=1.0, viewport-fit=cover, interactive-widget=resizes-content"
/>
- <meta name="theme-color" content="#f2f2f2" />
+ <meta name="theme-color" content="#f8f9fa" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="default" />
diff --git a/apps/web/src/components/ThemeProvider.tsx b/apps/web/src/components/ThemeProvider.tsx
index 0651bad1..42798934 100644
--- a/apps/web/src/components/ThemeProvider.tsx
+++ b/apps/web/src/components/ThemeProvider.tsx
@@ -138,7 +138,7 @@ const MERMAID_THEME_STORAGE_KEY = "edgeever.mermaid-theme";
const EDITOR_THEME_STORAGE_KEY = "edgeever.editor-theme";
const CUSTOM_EDITOR_THEME_STORAGE_KEY = "edgeever.custom-editor-theme";
const CUSTOM_EDITOR_THEMES_STORAGE_KEY = "edgeever.custom-editor-themes";
-const LIGHT_THEME_COLOR = "#f3f5f7";
+const LIGHT_THEME_COLOR = "#f8f9fa";
const DARK_THEME_COLOR = "#101311";
const AppearanceThemeContext = createContext<AppearanceThemeContextValue | null>(null);
const MermaidThemeContext = createContext<MermaidThemeContextValue | null>(null);
diff --git a/apps/web/src/lib/ui-palette.test.mjs b/apps/web/src/lib/ui-palette.test.mjs
index f554b000..16f8b29e 100644
--- a/apps/web/src/lib/ui-palette.test.mjs
+++ b/apps/web/src/lib/ui-palette.test.mjs
@@ -15,11 +15,11 @@ describe("application color system", () => {
});
test("keeps the light workspace achromatic while preserving text hierarchy", () => {
- expect(globals).toContain("--workspace-canvas: #f2f2f2;");
- expect(globals).toContain("--workspace-sidebar: #f2f2f2;");
- expect(globals).toContain("--workspace-memo-list: #f7f7f7;");
+ expect(globals).toContain("--workspace-canvas: #f8f9fa;");
+ expect(globals).toContain("--workspace-sidebar: #f8f9fa;");
+ expect(globals).toContain("--workspace-memo-list: #fafafa;");
expect(globals).toContain("--workspace-editor: #ffffff;");
- expect(globals).toContain("--workspace-selection: #e5e5e5;");
+ expect(globals).toContain("--workspace-selection: #edf0f2;");
expect(globals).toContain("--slate-500-rgb: 115 115 115;");
expect(globals).not.toContain("--slate-500-rgb: 100 116 139;");
expect(contrastRatio("#222222", "#ffffff")).toBeGreaterThanOrEqual(4.5);
diff --git a/apps/web/src/styles/globals.css b/apps/web/src/styles/globals.css
index 0d2d57a0..e8a23240 100644
--- a/apps/web/src/styles/globals.css
+++ b/apps/web/src/styles/globals.css
@@ -109,13 +109,13 @@ html[data-edgeever-environment="demo"] body::after {
--brand-green-800-rgb: 17 83 60;
--brand-green-900-rgb: 15 68 50;
--brand-green-950-rgb: 7 37 28;
- --workspace-canvas: #f2f2f2;
- --workspace-sidebar: #f2f2f2;
- --workspace-memo-list: #f7f7f7;
+ --workspace-canvas: #f8f9fa;
+ --workspace-sidebar: #f8f9fa;
+ --workspace-memo-list: #fafafa;
--workspace-editor: #ffffff;
- --workspace-divider: #dcdcdc;
- --workspace-memo-divider: #dedede;
- --workspace-selection: #e5e5e5;
+ --workspace-divider: #e9ebed;
+ --workspace-memo-divider: #edf0f2;
+ --workspace-selection: #edf0f2;
--slate-50-rgb: 250 250 250;
--slate-100-rgb: 245 245 245;
--slate-200-rgb: 229 229 229;
@@ -472,7 +472,10 @@ html[data-edgeever-extension-theme] .edgeever-memo-divider {
--editor-theme-bg: var(--workspace-editor);
}
-:root.dark .ProseMirror {
+:root.dark .ProseMirror,
+:root.dark .ProseMirror h1,
+:root.dark .ProseMirror h2,
+:root.dark .ProseMirror h3 {
color: hsl(var(--foreground));
}
@@ -486,7 +489,7 @@ textarea {
width: 100%;
max-width: 100%;
margin: 0;
- color: #000;
+ color: #27272a;
font-size: var(--editor-body-font-size);
line-height: var(--editor-body-line-height);
min-height: 100%;
@@ -555,21 +558,25 @@ textarea {
.ProseMirror h1 {
font-size: 2rem;
font-weight: 760;
- line-height: 1.15;
+ line-height: 1.25;
margin: 0 0 1rem;
+ color: #18181b;
}
.ProseMirror h2 {
font-size: 1.5rem;
font-weight: 720;
- line-height: 1.2;
+ line-height: 1.3;
margin: 1.4rem 0 0.7rem;
+ color: #18181b;
}
.ProseMirror h3 {
font-size: 1.2rem;
font-weight: 700;
+ line-height: 1.35;
margin: 1.2rem 0 0.6rem;
+ color: #27272a;
}
.ProseMirror p {