mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-27 17:19:40 +02:00
13 lines
255 B
TypeScript
13 lines
255 B
TypeScript
|
import { useDark } from "@vueuse/core";
|
||
|
|
||
|
export default ({ $vuetify }: any) => {
|
||
|
const isDark = useDark();
|
||
|
console.log("isDark Plugin", isDark);
|
||
|
|
||
|
if (isDark.value) {
|
||
|
$vuetify.theme.dark = true;
|
||
|
} else {
|
||
|
$vuetify.theme.dark = false;
|
||
|
}
|
||
|
};
|