feat(ui): add light theme toggle
This commit is contained in:
parent
bbc81cea0d
commit
cdb269e505
17 changed files with 415 additions and 24 deletions
|
|
@ -5,6 +5,15 @@
|
|||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta name="description" content="Dimension Lab dashboard runtime" />
|
||||
<title>Dimension Lab</title>
|
||||
<script>
|
||||
try {
|
||||
const theme = localStorage.getItem("dashboard-ui-theme");
|
||||
document.documentElement.dataset.uiTheme =
|
||||
theme === "light" ? "light" : "dark";
|
||||
} catch {
|
||||
document.documentElement.dataset.uiTheme = "dark";
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue