import 'vuetify/styles'; import { createVuetify } from 'vuetify'; import { md3 } from 'vuetify/blueprints'; import { aliases, mdi } from 'vuetify/iconsets/mdi-svg'; import { de } from 'vuetify/locale'; import { vuetifyThemes } from '../theme/material'; /** * @param {{ primaryColor: string, theme: 'system'|'light'|'dark' }} options */ export function createPortalVuetify({ primaryColor, theme }) { return createVuetify({ blueprint: md3, // SVG-Icons aus @mdi/js: nur die tatsächlich genutzten Icons landen im Bundle. icons: { defaultSet: 'mdi', aliases, sets: { mdi }, }, locale: { locale: 'de', messages: { de }, }, theme: { defaultTheme: theme, themes: vuetifyThemes(primaryColor), }, defaults: { VAppBar: { color: 'surface-container' }, VNavigationDrawer: { color: 'surface-container-low' }, VCard: { color: 'surface-container-low', elevation: 0 }, VTextField: { color: 'primary' }, VTextarea: { color: 'primary' }, }, }); }