From 9337c3cf960b60078558b7f942fd27f1ab39364b Mon Sep 17 00:00:00 2001
From: 李凌 <344137771@qq.com>
Date: Tue, 16 Dec 2025 18:29:46 +0800
Subject: [PATCH] 改黑夜样式

---
 src/assets/css/index.scss |   21 ++++++++++++---------
 1 files changed, 12 insertions(+), 9 deletions(-)

diff --git a/src/assets/css/index.scss b/src/assets/css/index.scss
index f4b1329..12e8b71 100644
--- a/src/assets/css/index.scss
+++ b/src/assets/css/index.scss
@@ -3,6 +3,8 @@
 @tailwind utilities;
 
 @import './variable.scss';
+@import '../theme/index.scss';
+@import './vant-theme.scss';
 
 /* overwite default */
 :root {
@@ -22,19 +24,17 @@
   -webkit-text-size-adjust: 100%;
   --van-sidebar-selected-border-height: 44px !important;
   --van-sidebar-selected-border-width: 2px !important;
-  --van-nav-bar-background: $mainBgColor !important;
-  --van-nav-bar-title-text-color: #fff !important;
-  --van-uploader-upload-background: #232C46 !important;
-  --van-index-anchor-text-color: #fff !important;
 }
+
+/* Vant 组件主题变量已移至 vant-theme.scss */
 
 body {
   width: 100vw;
   height: 100vh;
-  // color: $mainTextColor;
-  color: $log-c;
-  // background-color: $mainBgColor;
-  background-color: $mainbgWhiteColor;
+  @include themify() {
+    background-color: themed("main_background");
+    color: themed("text_color");
+  }
   padding-bottom: constant(safe-area-inset-bottom);
   padding-bottom: env(safe-area-inset-bottom);
 }
@@ -60,7 +60,10 @@
 }
 
 input::-webkit-input-placeholder {
-  color: #c0c4cc;
+  @include themify() {
+    color: themed("text_color1");
+  }
+  opacity: 0.6;
 }
 
 ul,

--
Gitblit v1.9.3