Add theme switch

This commit is contained in:
2023-01-14 19:52:10 +01:00
parent 54c8028b7a
commit efbd8bc344
4 changed files with 90 additions and 14 deletions
+3 -2
View File
@@ -8,8 +8,9 @@
<script setup lang="ts">
import { onMounted } from "vue";
import { RouterView } from "vue-router";
import { applyTheme } from "./utilities/theme_handler";
onMounted(() => {
document.documentElement.classList.add("dark");
applyTheme();
})
</script>