1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-07-22 22:59:41 +02:00
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;
}
};