SimpleNotes/frontend/plugins/theme.client.js

5 lines
145 B
JavaScript

export default function ({ $vuetify }) {
const theme = localStorage.getItem('theme') ?? 'light'
$vuetify.theme.dark = theme === 'dark'
}