11 lines
216 B
JavaScript
11 lines
216 B
JavaScript
|
|
import { defineStore } from 'pinia'
|
||
|
|
|
||
|
|
export const useTheming = defineStore('themeStore', {
|
||
|
|
state: () => ({ darkTheme: true }),
|
||
|
|
actions: {
|
||
|
|
toggleTheme() {
|
||
|
|
this.darkTheme = !this.darkTheme
|
||
|
|
},
|
||
|
|
},
|
||
|
|
})
|