initial commit
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user