mirror of
https://github.com/dz0ny/meshcore-sar.git
synced 2026-08-12 00:40:28 +00:00
feat: Add dark theme charts ref:
This commit is contained in:
@@ -18,5 +18,11 @@ import "../index.css";
|
||||
</head>
|
||||
<body>
|
||||
<slot />
|
||||
<script>
|
||||
const mq = window.matchMedia("(prefers-color-scheme: dark)");
|
||||
function apply(e) { document.documentElement.classList.toggle("dark", e.matches); }
|
||||
apply(mq);
|
||||
mq.addEventListener("change", apply);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user