Dark模式 oss存储
Deploy dev / deploy (push) Successful in 1m16s

This commit is contained in:
Azmat@qq.com
2026-09-24 18:06:00 +08:00
parent ceb5163881
commit 5dbb240b59
46 changed files with 3491 additions and 350 deletions
+14
View File
@@ -6,6 +6,20 @@
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet" />
<link rel="icon" href="/assets/yz/logo.png" />
<title>影擎</title>
<script>
(function () {
try {
var key = "yingqing-appearance";
var raw = localStorage.getItem(key) || "system";
var theme = raw;
if (raw !== "light" && raw !== "dark") {
theme = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
}
document.documentElement.setAttribute("data-theme", theme);
document.documentElement.style.colorScheme = theme;
} catch (e) {}
})();
</script>
</head>
<body>
<div id="root"></div>