feat: 默认主题 dark mode

This commit is contained in:
naiba
2024-08-13 23:50:55 +08:00
parent fda0dad5f1
commit da8fb57268
17 changed files with 248 additions and 79 deletions

View File

@@ -14,8 +14,10 @@
<script>
(function () {
updateLang({{.LANG }});
})();
document.documentElement.setAttribute('nz-theme', window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light')
}) ();
</script>
</body>
</html>
{{end}}