mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-19 13:19:41 +02:00
12 lines
215 B
TypeScript
12 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;
|
||
|
}
|
||
|
};
|