mealie/frontend/plugins/dark-mode.client.ts

11 lines
215 B
TypeScript

import { useDark } from "@vueuse/core";
export default ({ $vuetify }: any) => {
const isDark = useDark();
if (isDark.value) {
$vuetify.theme.dark = true;
} else {
$vuetify.theme.dark = false;
}
};