13 lines
377 B
JavaScript
13 lines
377 B
JavaScript
import { isDarkPreferred } from '@core/composable/useThemeConfig'
|
|
import { themeConfig } from '@themeConfig'
|
|
|
|
export const resolveVuetifyTheme = () => {
|
|
const storedTheme = localStorage.getItem(`${themeConfig.app.title}-theme`) || themeConfig.app.theme.value
|
|
|
|
return storedTheme === 'system'
|
|
? isDarkPreferred.value
|
|
? 'dark'
|
|
: 'light'
|
|
: storedTheme
|
|
}
|