From 0bb405aeb7350df70794ec45f51cc186a653f111 Mon Sep 17 00:00:00 2001 From: tianma-if Date: Mon, 24 Aug 2026 11:48:54 +0800 Subject: [PATCH] fix(web): refine theme contrast and color system --- apps/web/src/components/LoginScreen.tsx | 21 +- apps/web/src/components/MermaidCodeBlock.tsx | 3 +- apps/web/src/components/ThemeProvider.tsx | 30 +-- apps/web/src/lib/dark-theme.test.mjs | 53 ++++- apps/web/src/lib/mermaid-theme.test.mjs | 37 +++- apps/web/src/lib/note-html-export.ts | 2 + apps/web/src/lib/ui-palette.test.mjs | 34 +++ apps/web/src/lib/wechat-copy.ts | 2 + apps/web/src/note-print.ts | 2 + apps/web/src/styles/editor-themes/marxico.css | 32 +-- .../styles/editor-themes/minimal-emerald.css | 20 +- .../src/styles/editor-themes/modern-mint.css | 24 +- .../styles/editor-themes/outline-emerald.css | 20 +- .../src/styles/editor-themes/wechat-green.css | 26 +-- apps/web/src/styles/globals.css | 208 ++++++++++-------- .../web/src/styles/mobile-markdown-editor.css | 4 +- apps/web/tailwind.config.ts | 2 +- 17 files changed, 326 insertions(+), 194 deletions(-) create mode 100644 apps/web/src/lib/ui-palette.test.mjs diff --git a/apps/web/src/components/LoginScreen.tsx b/apps/web/src/components/LoginScreen.tsx index 700c7f17..6d4ee2a7 100644 --- a/apps/web/src/components/LoginScreen.tsx +++ b/apps/web/src/components/LoginScreen.tsx @@ -46,19 +46,18 @@ export const LoginScreen = ({ error, instanceUrl: initialInstanceUrl, isSubmitti }; return ( -
-
-
- +
+
+ -
+
-
+

{t("login.title")}

-

{t("login.subtitle")}

+

{t("login.subtitle")}

@@ -85,7 +84,7 @@ export const LoginScreen = ({ error, instanceUrl: initialInstanceUrl, isSubmitti {t("login.desktopInstanceUrl")} {t("login.username")} setUsername(event.target.value)} @@ -110,7 +109,7 @@ export const LoginScreen = ({ error, instanceUrl: initialInstanceUrl, isSubmitti {t("login.password")}