Fix toggleTheme method to update theme and store

it in local storage
This commit is contained in:
Gabriel Pastori
2023-11-24 01:09:21 -03:00
parent af3f3f5736
commit 919d1726c5
2 changed files with 7 additions and 6 deletions

View File

@@ -11,9 +11,12 @@ import 'vuetify/styles'
// Composables
import { createVuetify } from 'vuetify'
const defaultTheme = localStorage.getItem('theme') || 'light'
// https://vuetifyjs.com/en/introduction/why-vuetify/#feature-guides
export default createVuetify({
theme: {
defaultTheme,
themes: {
light: {
colors: {