Add theme-based background color to main content

This commit is contained in:
2025-08-14 15:26:46 +02:00
parent 909d49a3e2
commit af91640c2b

View File

@@ -1,18 +1,31 @@
<template>
<v-app>
<NavBar />
<v-app>
<NavBar />
<!-- Main content of the application -->
<v-main>
<NuxtPage />
<!-- Main content of the application -->
<v-main
:class="[
$vuetify.theme.current.dark
? 'bg-grey-darken-1'
: 'bg-green-lighten-5',
]"
>
<NuxtPage />
</v-main>
</v-main>
<AppFooter />
</v-app>
<AppFooter />
</v-app>
</template>
<script>
<script setup>
import { onMounted } from "vue";
import { useTheme } from "vuetify";
const theme = useTheme();
onMounted(() => {
console.log(theme.name);
});
</script>
<style></style>