Skip to content

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

fix(web): cool the light note surface one step above the list

tianma-if5381ac1fb747
diff --git a/apps/web/src/components/EditorPane.tsx b/apps/web/src/components/EditorPane.tsx
index 8a72cc59..f3b5368b 100644
--- a/apps/web/src/components/EditorPane.tsx
+++ b/apps/web/src/components/EditorPane.tsx
@@ -349,7 +349,7 @@ export const EditorPane = (props: EditorPaneProps) => {
if (editingActive) {
return (
- <div className="flex h-full min-h-0 items-center justify-center bg-card text-sm font-medium text-slate-400">
+ <div className="flex h-full min-h-0 items-center justify-center bg-transparent text-sm font-medium text-slate-400">
{t("editor.openEditor")}
</div>
);
@@ -3338,7 +3338,7 @@ const RichEditorPane = ({
if (isSelectionMode) {
return (
- <div className="flex h-full min-w-0 flex-col bg-card">
+ <div className="flex h-full min-w-0 flex-col bg-transparent">
{selectionActionBar}
</div>
);
@@ -3346,7 +3346,7 @@ const RichEditorPane = ({
if (isLoading && !memo) {
return (
- <div className="flex h-full min-w-0 flex-col bg-card">
+ <div className="flex h-full min-w-0 flex-col bg-transparent">
<EmptyEditorHeader />
{selectionActionBar}
<div className="flex min-h-0 flex-1 items-center justify-center text-sm text-slate-500">{t("editor.loading")}</div>
@@ -3356,7 +3356,7 @@ const RichEditorPane = ({
if (!memo) {
return (
- <div className="flex h-full min-w-0 flex-col bg-card">
+ <div className="flex h-full min-w-0 flex-col bg-transparent">
<EmptyEditorHeader />
{selectionActionBar}
<div className="flex min-h-0 flex-1 items-center justify-center px-8 text-center">
diff --git a/apps/web/src/components/WorkspaceApp.tsx b/apps/web/src/components/WorkspaceApp.tsx
index 8fc41dbd..b3f579a2 100644
--- a/apps/web/src/components/WorkspaceApp.tsx
+++ b/apps/web/src/components/WorkspaceApp.tsx
@@ -3347,7 +3347,7 @@ export const WorkspaceApp = ({
) : rendererRecoveryMode ? (
<EditorRecoveryPane />
) : memoSelectionModeActive ? (
- <div className="flex h-full min-w-0 flex-col bg-card">
+ <div className="flex h-full min-w-0 flex-col bg-transparent">
{memoSelectionActionBar}
</div>
) : (
diff --git a/apps/web/src/lib/ui-palette.test.mjs b/apps/web/src/lib/ui-palette.test.mjs
index abb17b7f..2a703a95 100644
--- a/apps/web/src/lib/ui-palette.test.mjs
+++ b/apps/web/src/lib/ui-palette.test.mjs
@@ -21,7 +21,7 @@ describe("application color system", () => {
expect(globals).toContain("--workspace-canvas: #eef1f4;");
expect(globals).toContain("--workspace-sidebar: #e7ebef;");
expect(globals).toContain("--workspace-memo-list: #f4f6f8;");
- expect(globals).toContain("--workspace-editor: #ffffff;");
+ expect(globals).toContain("--workspace-editor: #f8fafb;");
expect(globals).toContain("--workspace-selection: #dde3e9;");
expect(globals).toContain("--color-workspace-canvas: var(--workspace-canvas);");
expect(globals).toContain("--workspace-hover: color-mix(in srgb, var(--workspace-sidebar) 40%, white);");
@@ -37,6 +37,8 @@ describe("application color system", () => {
expect(globals).not.toContain("--slate-500-rgb: 100 116 139;");
expect(contrastRatio("#222222", "#ffffff")).toBeGreaterThanOrEqual(4.5);
expect(contrastRatio("#737373", "#ffffff")).toBeGreaterThanOrEqual(4.5);
+ expect(contrastRatio("#27272a", "#f8fafb")).toBeGreaterThanOrEqual(4.5);
+ expect(contrastRatio("#737373", "#f8fafb")).toBeGreaterThanOrEqual(4.5);
});
test("keeps dark workspace surfaces distinct without blue-black color casts", () => {
diff --git a/apps/web/src/styles/globals.css b/apps/web/src/styles/globals.css
index 9d98b55b..8344dccc 100644
--- a/apps/web/src/styles/globals.css
+++ b/apps/web/src/styles/globals.css
@@ -294,7 +294,7 @@ html.dark[data-edgeever-environment="demo"] body::after {
--workspace-canvas: #eef1f4;
--workspace-sidebar: #e7ebef;
--workspace-memo-list: #f4f6f8;
- --workspace-editor: #ffffff;
+ --workspace-editor: #f8fafb;
--workspace-divider: #e1e5ea;
--workspace-memo-divider: #e6eaee;
--workspace-selection: #dde3e9;