feat (ui): light/dark mode
This commit is contained in:
@@ -4,6 +4,16 @@
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Rename MVP Debug</title>
|
||||
<script>
|
||||
(function () {
|
||||
var key = "rename_mvp_theme";
|
||||
var theme = localStorage.getItem(key);
|
||||
if (theme !== "light" && theme !== "dark") {
|
||||
theme = "dark";
|
||||
}
|
||||
document.documentElement.setAttribute("data-theme", theme);
|
||||
})();
|
||||
</script>
|
||||
<link rel="stylesheet" href="/static/styles.css" />
|
||||
</head>
|
||||
<body>
|
||||
|
||||
Reference in New Issue
Block a user