mirror of
https://github.com/NotXia/notxia.github.io.git
synced 2026-08-05 21:32:23 +00:00
Add theme switch
This commit is contained in:
+3
-2
@@ -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>
|
||||
Reference in New Issue
Block a user