From 948899e1309eeae0a720fb1d91ed52e5aeeee60e Mon Sep 17 00:00:00 2001
From: liyunze <50455574+liyunze-coding@users.noreply.github.com>
Date: Sat, 5 Sep 2026 12:20:49 +0800
Subject: [PATCH] updated meta theme colour
---
src/app.html | 4 +---
src/lib/stores/theme.ts | 2 --
vite.config.ts | 2 +-
3 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/src/app.html b/src/app.html
index 29292ee..dd447f8 100644
--- a/src/app.html
+++ b/src/app.html
@@ -7,7 +7,7 @@
-
+
diff --git a/src/lib/stores/theme.ts b/src/lib/stores/theme.ts
index 803abf0..2130c4c 100644
--- a/src/lib/stores/theme.ts
+++ b/src/lib/stores/theme.ts
@@ -17,8 +17,6 @@ function applyTheme(value: Theme) {
const root = document.documentElement;
root.classList.toggle("dark", value === "dark");
root.style.colorScheme = value;
- const meta = document.querySelector('meta[name="theme-color"]');
- if (meta) meta.setAttribute("content", value === "dark" ? "#131014" : "#ffffff");
}
export function toggleTheme() {
diff --git a/vite.config.ts b/vite.config.ts
index 5cd0a2f..46410a7 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -33,7 +33,7 @@ export default defineConfig({
scope: "/",
display: "standalone",
background_color: "#ffffff",
- theme_color: "#ffffff",
+ theme_color: "#ea4c65",
lang: "en",
},
pwaAssets: {