diff --git a/frontend/src/App.vue b/frontend/src/App.vue
index 24aab3e..d84d180 100644
--- a/frontend/src/App.vue
+++ b/frontend/src/App.vue
@@ -32,9 +32,16 @@ window.addEventListener('logout', () => {
onMounted(async () => {
const mediaQuery = window.matchMedia(breakPointScreen)
+
mediaQuery.addEventListener('change', e => {
sizeScreen.value = e
})
+
+ const theme = localStorage.getItem('theme')
+
+ if (theme !== null) {
+ document.querySelector('html').setAttribute('data-theme', theme)
+ }
})
onUnmounted(() => {
diff --git a/frontend/src/components/ThemeSwitcher.vue b/frontend/src/components/ThemeSwitcher.vue
index acdec5a..8a3aa40 100644
--- a/frontend/src/components/ThemeSwitcher.vue
+++ b/frontend/src/components/ThemeSwitcher.vue
@@ -1,3 +1,13 @@
+
+
@@ -49,6 +60,7 @@
class="theme-controller btn btn-sm btn-block btn-ghost justify-start"
aria-label="Dark"
value="dark"
+ v-model="picked"
/>
@@ -58,6 +70,7 @@
class="theme-controller btn btn-sm btn-block btn-ghost justify-start"
aria-label="Cyberpunk"
value="cyberpunk"
+ v-model="picked"
/>
@@ -67,6 +80,7 @@
class="theme-controller btn btn-sm btn-block btn-ghost justify-start"
aria-label="Sunset"
value="sunset"
+ v-model="picked"
/>
@@ -76,6 +90,7 @@
class="theme-controller btn btn-sm btn-block btn-ghost justify-start"
aria-label="Aqua"
value="aqua"
+ v-model="picked"
/>
@@ -85,6 +100,7 @@
class="theme-controller btn btn-sm btn-block btn-ghost justify-start"
aria-label="Romance Light"
value="romance-light"
+ v-model="picked"
/>
@@ -94,10 +110,9 @@
class="theme-controller btn btn-sm btn-block btn-ghost justify-start"
aria-label="Romance Dark"
value="romance-dark"
+ v-model="picked"
/>
-