style(theme): 缩短明暗过渡到 160ms

This commit is contained in:
2026-11-03 20:12:14 +08:00
parent 3330af818e
commit 5736bbc101
2 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -309,7 +309,7 @@ export default function AppNext() {
if (root.dataset.scheme === scheme) return
root.classList.add('theme-transition')
root.dataset.scheme = scheme
const timer = window.setTimeout(() => root.classList.remove('theme-transition'), 260)
const timer = window.setTimeout(() => root.classList.remove('theme-transition'), 180)
return () => {
window.clearTimeout(timer)
root.classList.remove('theme-transition')